Template Lite - the faster compiling PHP template engine
Custom Output Filters
Description
This will use gzip compression on all template output.
Special Variable Flags
These flags are set through the template object.
- $template_object->send_now = 0 will cache the output and not send the data
- $template_object->send_now = 1 will output any cached template data and current template data. This is the default setting.
- $template_object->force_compression = 1 will cause all output to be compressed and ignore what the browser or server indicates for gzip support
- $template_object->force_compression = 0 will cause the filter output to be compressed using gzip if the browser indicated it supports gzip and the server offers gzip support. This is the default setting.
- $template_object->compression_level = {0 - 9} is the amount of compression to use on the output 0 is the least and 9 is maximum. The default setting is 9.
- $template_object->enable_gzip = 0 output compression is diabled
- $template_object->enable_gzip = 1 output compression is enabled Default Setting
Description
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.
Home