This commit is contained in:
bzick
2014-11-05 16:07:50 +03:00
parent 1c439fedb7
commit 7e8598ae3b
6 changed files with 43 additions and 30 deletions

View File

@@ -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");