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 <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to