fenom/sandbox/fenom.php
2014-06-09 23:40:59 +04:00

19 lines
388 B
PHP

<?php
namespace Ts {
class Math {
public static function multi($x, $y) {
return $x * $y;
}
}
}
namespace {
require_once __DIR__.'/../src/Fenom.php';
\Fenom::registerAutoload();
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled', Fenom::FORCE_COMPILE);
var_dump($fenom->compile("concat-bug.tpl", false)->getBody());
}