The Savant Template System for PHPThe simple, elegant, and powerful alternative to Smarty. |
| Savant2 (2.4.3) | Documentation | Contributed Classes | Other Information |
| Documentation | Getting Started | API Reference | Template Plugins | Output Filters | Error Handlers | Markup Compilers |
|
Please help support Savant; you can donate, or click on a sponsor.
|
Template PluginsTo use a plugin in a template script, call it using $this->plugin() or $this->splugin(). The first parameter is always the name of the plugin (such as 'stylesheet' or 'options', and the remaining parameters depend on the specific plugin. Note: As of Savant 2.3.1 and later, you can use the the plugin name as the method name instead of the plugin() method. For example, instead of $this->plugin('ahref', ...) you can use $this->ahref(...). However, this only works in PHP5. Savant is packaged with 13 default plugins in the Savant2/ directory:
This site powered by YaWiki 0.22 beta. Copyright © 2003-2010, Paul M. Jones.
New comments are disabled. |
|