mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
10 lines
301 B
PHP
10 lines
301 B
PHP
<?php
|
|
|
|
require_once __DIR__.'/../src/Fenom.php';
|
|
|
|
\Fenom::registerAutoload();
|
|
|
|
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled');
|
|
$fenom->setOptions(Fenom::AUTO_RELOAD | Fenom::AUTO_STRIP);
|
|
echo($fenom->compile("problem.tpl", false)->getBody());
|
|
// $fenom->getTemplate("problem.tpl");
|