Fix AUTO_RELOAD option

This commit is contained in:
bzick
2013-08-23 00:55:53 +04:00
parent 75c8d983d8
commit ecc842cc04
7 changed files with 39 additions and 13 deletions

View File

View File

@@ -2,6 +2,10 @@
require_once __DIR__.'/../../vendor/autoload.php';
$t = new Fenom\Tokenizer('some "asd {$$ddd} dfg" some');
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled', Fenom::FORCE_COMPILE);
var_dump($t->tokens);
$fenom->display("greeting.tpl", array(
"user" => array(
"name" => "Ivka"
)
));

View File

@@ -0,0 +1,8 @@
Greeting,
{if $user}
{$user.name}!
{else}
anonymous?
{/if}
3