Smarty PHP Template Engine
This repository was created from the Smarty svn sources using the svn2git tool:
$ svn2git https://smarty-php.googlecode.com/svn -v
and is updated at each Smarty release with:
$ svn2git --rebase -v
On top of the Smarty code we add some patches to make it work better with the SmartyBundle library.
Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation.
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 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.
- Template Inheritance for easy management of template content.
- Plugin architecture.
See the Smarty3 Manual for other features and information on it's syntax, configuration and installation.
SmartyBundle is a module that allows the usage of the Smarty template engine in the Symfony2 and PPI2 frameworks.
https://code.google.com/p/smarty-php/people/list
Vítor Brandão - vitor@noiselabs.org ~ twitter.com/noiselabs ~ www.noiselabs.org
See also the list of contributors who participated in this project.
Smarty issues should be reported to its own bugtracker on GoogleCode.
Specific issues regarding this repository may be reported here on GitHub.