fenom/sandbox/fenom.php

19 lines
388 B
PHP
Raw Normal View History

2013-07-22 18:03:43 +04:00
<?php
namespace Ts {
class Math {
public static function multi($x, $y) {
return $x * $y;
}
}
}
2013-08-11 19:55:30 +04:00
namespace {
2014-04-17 23:50:18 +04:00
require_once __DIR__.'/../src/Fenom.php';
\Fenom::registerAutoload();
2013-08-11 19:55:30 +04:00
$fenom = Fenom::factory(__DIR__.'/templates', __DIR__.'/compiled', Fenom::FORCE_COMPILE);
2014-06-09 23:40:31 +04:00
var_dump($fenom->compile("concat-bug.tpl", false)->getBody());
}