Please give us any feedback, do you agree if we switch template engine to smarty (http://smarty.php.net). It's the most powerful template engine, very fast, and complex too. But do not worry, indexu will make it simpler, as simple as current templating. But you always have choise to use its advance features.
Here're some of its features:
• It is extremely fast.
• It is efficient since the PHP parser does the dirty work.
• No template parsing overhead, only compiles once.
• It is smart about recompiling only the template files that have changed.
• You can make custom functions and custom variable modifiers, so the template
language is extremely extensible.
• Configurable template delimiter tag syntax, so you can use {}, {{}}, <!--{}-->, etc.
• The if/elseif/else/endif constructs are passed to the PHP parser, so the {if ...} expression
syntax can be as simple or as complex as you like.
• Unlimited nesting of sections, ifs, etc. allowed.
• It is possible to embed PHP code right in your template files, although this may
not be needed (nor recommended) since the engine is so customizable.
• Built-in caching support
• Arbitrary template sources
• Custom cache handling functions
• Plugin architecture
The impact in indexu template are:
- Change tag from <%indexu_variable%> to {$indexu_variable}
- Since smarty support if.. else... statement, then there're some complicated reduction in file msg.php. For sample case is login box that is now stored in msg.php. With smarty it's very handy in index.html using {if $logged}.......... {else}....................
- Smarty have bloc/section template, mean looping data fetch like displaying links. This feature will not used by indexu to prevent complicated design. Indexu 4 still use file template to display link and others. rows.html is still used. No change in this form.


LinkBack URL
About LinkBacks
