mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Fix AUTO_RELOAD option
This commit is contained in:
0
benchmark/sandbox/compiled/.gitkeep
Normal file
0
benchmark/sandbox/compiled/.gitkeep
Normal 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"
|
||||
)
|
||||
));
|
8
benchmark/sandbox/templates/greeting.tpl
Normal file
8
benchmark/sandbox/templates/greeting.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
Greeting,
|
||||
{if $user}
|
||||
{$user.name}!
|
||||
{else}
|
||||
anonymous?
|
||||
{/if}
|
||||
|
||||
3
|
Reference in New Issue
Block a user