[Eis-devel] Proposal for different template libary
Status: Pre-Alpha
Brought to you by:
baslijnse
|
From: Tom v. d. B. <tom...@gm...> - 2007-08-16 20:01:45
|
Hi, I'm reading up on Smarty http://smarty.php.net/ a template library in the same manner a the current EIS template lib. I would like to propose to replace the current template lib with the smarty template library. Its basic usage is almost exactly the same while it also has more advanced features (See below). * Some of Smarty's 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<http://smarty.php.net/manual/en/variable.compile.check.php>only the template files that have changed. - You can easily create your own custom functions<http://smarty.php.net/manual/en/language.custom.functions.php>and variable modifiers <http://smarty.php.net/manual/en/language.modifiers.php>, so the template language is extremely extensible. - Configurable template {delimiter}<http://smarty.php.net/manual/en/variable.left.delimiter.php>tag syntax, so you can use {$foo}, {{$foo}}, <!--{$foo}-->, etc. - The {if}..{elseif}..{else}..{/if}<http://smarty.php.net/manual/en/language.function.if.php>constructs are passed to the PHP parser, so the {if...} expression syntax can be as simple or as complex an evaluation as you like. - Allows unlimited nesting of sections<http://smarty.php.net/manual/en/language.function.section.php>, if's etc. - It is possible to embed PHP code<http://smarty.php.net/manual/en/language.function.php.php>right in your template files, although this may not be needed (nor recommended) since the engine is so customizable<http://smarty.php.net/manual/en/plugins.php>. - Built-in caching <http://smarty.php.net/manual/en/caching.php> support - Arbitrary template<http://smarty.php.net/manual/en/template.resources.php>sources - Custom cache handling<http://smarty.php.net/manual/en/section.template.cache.handler.func.php>functions - Plugin <http://smarty.php.net/manual/en/plugins.php> architecture Tom. |