Skip to content

Instantly share code, notes, and snippets.

@lyrixx
Last active August 29, 2015 14:07
Show Gist options
  • Save lyrixx/23bb3980daf65154c3d4 to your computer and use it in GitHub Desktop.
Save lyrixx/23bb3980daf65154c3d4 to your computer and use it in GitHub Desktop.
test melody
<?php
<<<CONFIG
packages:
- "twig/twig: *"
CONFIG;
echo "----------------------------------\n";
$twig = new Twig_Environment(new Twig_Loader_Array(array(
'my_template' => 'Hello {{ name }}',
)));
echo $twig->render('my_template', array('name' => 'greg'));
echo "\n----------------------------------\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment