smarty 3.1.7

smarty

Smarty is a PHP template engine.Smarty is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.

Smarty is primarily promoted as a tool for separation of concerns. More specifically, it facilitates a manageable way to separate application logic and content from its presentation.

Features of Smarty:
- 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 easily create your own custom functions and variable modifiers, so the template language is extremely extensible.
- Configurable template {delimiter} tag syntax, so you can use {$foo}, {{$foo}}, <!--{$foo}-->, etc.
- The {if}..{elseif}..{else}..{/if} 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, if's etc.
- Built-in caching support
- Arbitrary template sources
- Custom cache handling functions
- Template Inheritance for easy management of template content.
- Plugin architecture

Requirements:
- PHP 5.2 or Higher

What's New in this version 3.1rc1:
- optimization of {foreach}; call internal _count() method only when "total" or "last" {foreach} properties are used
- added  unregisterObject() methode
- bugfix  isset() did not work in templates on config variables
- bugfix createTemplate() must default to cache_id and compile_id of Smarty object
- bugfix Smarty_CacheResource_KeyValueStore must include $source->uid in cache filepath to keep templates with same
name but different folders seperated
- added cacheresource.apc.php example in demo folder


License type: GNU Library or Lesser General Public License (LGPL)
Date added: 1 year, 6 months 26 days ago | Last updated: 3 months 20 days ago

More popular Template engine

Listing Files

Smarty-3.0.5
  • README
  • 20.2 KB
  • 11/21/2010 03:58:30
libs
sysplugins
List All Files