summaryrefslogtreecommitdiff
path: root/stupid_template_engine.php
diff options
context:
space:
mode:
Diffstat (limited to 'stupid_template_engine.php')
-rw-r--r--stupid_template_engine.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/stupid_template_engine.php b/stupid_template_engine.php
index de6a89b..a8eba06 100644
--- a/stupid_template_engine.php
+++ b/stupid_template_engine.php
@@ -715,7 +715,7 @@ $ste_builtins = array(
},
"infloop" => function($ast)
{
- return "while(True)\n{\n" . loopbody(indent_code(_transcompile($ast->sub)) . "\n}") . "\n";
+ return "while(True)\n{\n" . indent_code(loopbody(indent_code(_transcompile($ast->sub)))) . "\n}\n";
},
"break" => function($ast)
{
@@ -1308,7 +1308,7 @@ class STECore
$content = precompile($content);
try
{
- $ast = parse($content, $tpl, 0);
+ $ast = parse($content, $tpl);
$transc = transcompile($ast);
}
catch(ParseCompileError $e)