snytkine/LampCMS — Issue #67: Add sub-class to Template class to allow named placeholders in templates
Author: snytkine
Created: 2011-10-23 23:06:01+00:00
State: open

Sub-class Template class to have different parsing method that allows named placeholders like {var1}, {var2}, etc.
Parsing templates with named placeholders is about 20- 25% slower (even more when user preg_replace) so templates that use loop a lot should still use base templating engine. Big templates like tplMain or user profile template should use named placeholders because it get very difficult to work with ordered placeholders where there are 30-40 placeholders in template.