mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
++Docs
This commit is contained in:
@@ -1,19 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Ts {
|
||||
class Math {
|
||||
public static function multi($x, $y) {
|
||||
return $x * $y;
|
||||
}
|
||||
}
|
||||
}
|
||||
require_once __DIR__.'/../src/Fenom.php';
|
||||
|
||||
namespace {
|
||||
require_once __DIR__.'/../src/Fenom.php';
|
||||
\Fenom::registerAutoload();
|
||||
|
||||
\Fenom::registerAutoload();
|
||||
|
||||
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled', Fenom::FORCE_COMPILE);
|
||||
|
||||
var_dump($fenom->compile("concat-bug.tpl", false)->getBody());
|
||||
}
|
||||
$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");
|
||||
Reference in New Issue
Block a user