Hi Sam, I was looking through H::T when I noticed that it splits the incoming template using:
split ( /(?<=)/ , $template) This regex ends up splitting on every '<'. I have modified my version to use: split( m!(?=<(?:\!--\s*)?/?[Tt][Mm][Pp][Ll]_)! , $template) which thus matches only on <TMPL_ and </TMPL_ tags. As a result of trying to understand the output of the debug info, I have found this regex to generate chunks which are simpler to read, from a human point of view. This may or may not be of benefit (eg I'm not sure if its faster or slower), but it has helped in debugging. cheers, Mathew ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users