PHP code example of hypejunction / mustache

1. Go to this page and download the library: Download hypejunction/mustache library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hypejunction / mustache example snippets



// /start.php
elgg_register_simplecache_view('path/to/template.html.php');


	echo mustache()->render(elgg_view('mustache/template.html'), array(
		'name' => elgg_get_logged_in_user_entity()->name,
	));