Re: [htmltmpl] Using HTML::Template

2004-03-04 Thread Mathew Robertson
yep H::T is very good at this - and you could probably something simple like this, in less than 50 lines of code.   Mathew   - Original Message - From: J C To: [EMAIL PROTECTED] Sent: Friday, March 05, 2004 7:03 AM Subject: [htmltmpl] Using HTML::Template

[htmltmpl] Using HTML::Template

2004-03-04 Thread J C
I need to be able to do the following with a Perl script and send out emails via HTML or text (if they don't want HTML emails): I need to read in a file that would contain information like (customer id, first name, last name, address, etc.) I really don't want the HTML tags in the Perl script. I'l

Re: [htmltmpl] H::T chunking of templates

2004-03-04 Thread Mathew Robertson
> > 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]_)! , $te

Re: [htmltmpl] H::T chunking of templates

2004-03-04 Thread Pete Prodoehl
Mathew Robertson wrote: 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)