Re: [Eis-devel] Proposal for different template libary
Status: Pre-Alpha
Brought to you by:
baslijnse
|
From: Bas L. <ba...@ba...> - 2007-08-17 09:52:41
|
Hey Tom, using a smarty or other useful third party libraries looks like a smart idea to me. However, I don't really like including third party libraries into the EIS distribution because it will require more maintenance and will bloat EIS. Therefore I would like to propose to wrap smarty in a module (e.g. "lib_smarty") and maintain a separate directory with optional modules in the svn repos. This will keep the EIS core clean but will allow for easy extension of EIS with smarty. What is your opinion on such a construction? grtz, Bas Tom van den Broek wrote: > 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. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > ------------------------------------------------------------------------ > > _______________________________________________ > Eis-devel mailing list > Eis...@li... > https://lists.sourceforge.net/lists/listinfo/eis-devel > |