mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Remove debugs
This commit is contained in:
parent
cad8d27ffe
commit
0139593d45
@ -199,7 +199,6 @@ class Render extends \ArrayObject
|
|||||||
public function getMacro($name)
|
public function getMacro($name)
|
||||||
{
|
{
|
||||||
if(empty($this->_macros[$name])) {
|
if(empty($this->_macros[$name])) {
|
||||||
var_dump($this->_macros[$name]); exit;
|
|
||||||
throw new RuntimeException('macro not found');
|
throw new RuntimeException('macro not found');
|
||||||
}
|
}
|
||||||
return $this->_macros[$name];
|
return $this->_macros[$name];
|
||||||
|
@ -51,15 +51,15 @@ class MacrosTest extends TestCase
|
|||||||
{/if}
|
{/if}
|
||||||
{/macro}
|
{/macro}
|
||||||
|
|
||||||
XXXX: {macro.factorial num=10}');
|
{macro.factorial num=10}');
|
||||||
|
|
||||||
$this->tpl("macro_recursive_import.tpl", '
|
$this->tpl("macro_recursive_import.tpl", '
|
||||||
{import "macro_recursive.tpl" as math}
|
{import "macro_recursive.tpl" as math}
|
||||||
|
|
||||||
YYYY: {math.factorial num=10}');
|
{math.factorial num=10}');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSandbox()
|
public function _testSandbox()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
// $this->fenom->compile("macro_recursive.tpl")->display([]);
|
// $this->fenom->compile("macro_recursive.tpl")->display([]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user