diff --git a/class.templater.php b/class.templater.php
index 5e3f0c6..734e4ee 100644
--- a/class.templater.php
+++ b/class.templater.php
@@ -82,6 +82,8 @@ class Templater
}
}
+ /* Legacy parser code */
+
public function Compile($strings)
{
global $template_global_vars;
@@ -275,6 +277,8 @@ class Templater
return $template->Render();
}
+ /* New parser code */
+
public static function AdvancedParse($templatename, $localize = array(), $compile = array())
{
$template = new Templater();
@@ -422,10 +426,7 @@ class Templater
if($identifier == $current_tag[$depth])
{
- //echo("Closing tag found, start position [{$tag_start}], end position [{$tag_end}], identifier [{$identifier}]
");
-
$debug_tree[] = "[{$depth}]" . str_repeat(" ", $depth) . "/{$identifier}";
- //echo("[{$depth}]" . str_repeat(" ", $depth) . " {$current_tag[$depth]}
");
}
else
@@ -537,6 +538,8 @@ class Templater
}
}
+/* Syntax element definitions */
+
class TemplateSyntaxElement
{
public $parent = null;