The Savant Template System for PHP

The 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  

Savant Versions:

Savant2

Savant3


Please help support Savant; you can donate, or click on a sponsor.

Amazon Honor System Click Here to Pay Learn More

Output Filters

Output filters intercept and process the finished output of a template script, then return the processed output. For more information on applying filters, see the "Getting Started" page on using output filters.

Savant2 comes with two output filters:

  • colorizeCode? applies highlight_string() to all text between <php>...</php> tags in the template output.
  • trimwhitespace removes blank space between tags to compress the template output.
Savant2:FilterRef (pmjones)
Mon Oct 4 15:37:53 2004
[ Links | Source | History | RSS ]

This site powered by YaWiki 0.22 beta.

Copyright © 2003-2010, Paul M. Jones.


mazzy [AT] trix [DOT] pl
2006-06-13 16:08:14 (1120)
Smarty? Reinventing the wheel :) Savant's power is in its simplicity in use. No special tags and other sh*t.I have found only one thing better: Ruby on rails, in case of php I prefer PEAR packages and Savant. It fits great together!
spam at spam dot org
2005-09-28 16:26:07 (974)
hi, I really think savant is a baby project, it doesn't have anything of util things that smarty have :(
nhgb
2005-05-31 06:30:22 (903)
ghjg g hjg hjghjg hjg kj uyiuyuyu iyiu yui yuiyuiy ui

New comments are disabled.

Output Filters
colorizeCode
trimwhitespace