mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
15 lines
536 B
PHP
15 lines
536 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/../src/Fenom.php';
|
|
require_once __DIR__.'/../tests/tools.php';
|
|
|
|
\Fenom::registerAutoload();
|
|
|
|
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled');
|
|
$fenom->setOptions(Fenom::AUTO_RELOAD | Fenom::FORCE_VERIFY);
|
|
//var_dump($fenom->compile("nested.tpl", [])->getTemplateCode());
|
|
//exit;
|
|
var_dump($fenom->fetch('bug247/home.tpl', []));
|
|
//var_dump($fenom->compile("bug158/main.tpl", [])->getTemplateCode());
|
|
//var_dump($fenom->display("bug158/main.tpl", []));
|
|
// $fenom->getTemplate("problem.tpl");
|