Last active
August 29, 2015 14:02
-
-
Save smarden1/470f67980f006832a667 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
include('mustache.php'); | |
$engine = new Mustache_Engine(array()); | |
$data = array("title" => "TITLE"); | |
$template = "{{{title}}}"; | |
$output = $engine->render($template, $data); | |
echo("\n $output for $template"); | |
$template = "{{{title}}"; | |
$output = $engine->render($template, $data); | |
echo("\n $output for $template"); | |
$template = "{{{title}}other"; | |
$output = $engine->render($template, $data); | |
echo("\n $output for $template"); | |
echo("\n"); | |
***************************** | |
2554:mustache.php smardenfeld$ php test.php | |
TITLE for {{{title}}} | |
TITLE for {{{title}} | |
TITLEther for {{{title}}other |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment