Clean up Templater code

develop
Sven Slootweg 12 years ago
parent f910045417
commit 597d8d0e56

@ -285,15 +285,13 @@ class Templater
$template->templatename = $template->basedir . $templatename . $template->extension;; $template->templatename = $template->basedir . $templatename . $template->extension;;
$template->Load($templatename); $template->Load($templatename);
$template->Localize($localize); $template->Localize($localize);
$template->Parse($compile); return $template->Parse($compile);
//return $template->Render();
} }
public function Parse($data) public function Parse($data)
{ {
$tree = $this->BuildSyntaxTree(); $tree = $this->BuildSyntaxTree();
//pretty_dump($this->root); return $this->root->Evaluate($data);
echo($this->root->Evaluate($data));
} }
public function BuildSyntaxTree() public function BuildSyntaxTree()

Loading…
Cancel
Save