A Mustache (logic-less templating system for HTML) implementation in PHP.
mustache.php is an implementation of mustache in PHP. It requires at least PHP 5.2.x.
You can find more information about Mustache on the official website.
Installation
It can be easily installed using composer-php:
{
"require": {
"mustache/mustache": "2.0.*"
}
}
An example
<?php
$m = new Mustache_Engine;
echo $m->render('Hello {{planet}}', array('planet' => 'World!'));
// will print: "Hello World!"