Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Created June 18, 2014 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzdan/b088c3517ab2698c51d7 to your computer and use it in GitHub Desktop.
Save jazzdan/b088c3517ab2698c51d7 to your computer and use it in GitHub Desktop.
Tokens vanishing in mustache.php
<?php
require 'src/Mustache/Autoloader.php';
Mustache_Autoloader::register();
$m = new Mustache_Engine([
'partials' => [
],
]);
$tpl = '<h1>{{{blah}}</h1>';
echo $m->render($tpl, [
'blah' => 'hello world!'
]);
// => <h1>hello world!/h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment