/smarty/plugins/outputfilter.trimwhitespace.php

Description

Smarty plugin

Functions
smarty_outputfilter_trimwhitespace (line 28)

Smarty trimwhitespace outputfilter plugin

File: outputfilter.trimwhitespace.php
Type: outputfilter
Name: trimwhitespace
Date: Jan 25, 2003
Purpose: trim leading white space and blank lines from template source after it gets interpreted, cleaning up code and saving bandwidth. Does not affect PRE>></PRE> and <SCRIPT></SCRIPT> blocks.
Install: Drop into the plugin directory, call

  1. $smarty->load_filter('output','trimwhitespace');
from application.

void smarty_outputfilter_trimwhitespace (string $source, Smarty &$smarty)
  • string $source
  • Smarty &$smarty
smarty_outputfilter_trimwhitespace_replace (line 64)
void smarty_outputfilter_trimwhitespace_replace (mixed $search_str, mixed $replace, mixed &$subject)

Documentation generated on Thu, 04 Sep 2008 16:15:21 +0400 by phpDocumentor 1.3.0RC3