2013-07-22 18:03:43 +04:00
|
|
|
<?php
|
|
|
|
|
2014-11-05 16:07:50 +03:00
|
|
|
require_once __DIR__.'/../src/Fenom.php';
|
2015-01-06 21:35:42 +03:00
|
|
|
require_once __DIR__.'/../tests/tools.php';
|
2013-08-11 19:55:30 +04:00
|
|
|
|
2014-11-05 16:07:50 +03:00
|
|
|
\Fenom::registerAutoload();
|
2014-04-17 23:50:18 +04:00
|
|
|
|
2014-11-05 16:07:50 +03:00
|
|
|
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled');
|
2015-01-06 21:35:42 +03:00
|
|
|
$fenom->setOptions(Fenom::AUTO_RELOAD);
|
2015-02-12 12:13:35 +03:00
|
|
|
var_dump($fenom->compileCode('{$b == 5 ? "5" : "?"}')->getBody());
|
2015-01-30 16:52:58 +03:00
|
|
|
//$fenom->display("blocks/second.tpl", []);
|
2014-11-05 16:07:50 +03:00
|
|
|
// $fenom->getTemplate("problem.tpl");
|