[htmltmpl] Filters to contribute
Brought to you by:
samtregar
From: Keith J. <kja...@ey...> - 2003-12-10 13:12:56
|
The idea of a filter module or library is a great idea. Here are a couple I use all the time. 1) Put a comment in the template that will not be displayed in the resulting page: s!<tmpl_comment>.*?</tmpl_comment>!!gs; 2) Translate the SSI "include virtual" into a template include: s/<!--\s*#include virtual="[\/]?(.+?)"\s*-->/ <TMPL_INCLUDE NAME="$1">/ig; -- Keith Jackson <kja...@ey...> |