Re: [htmltmpl] Dynamically including templates?

2004-01-07 Thread Timm Murray
At 02:20 PM 1/7/04 -0500, Todd Chapman wrote: Using the method described below, do I have to set the params in the appropriate teamplates, or can I do the include first and set all the params in one template? The reason I ask is that the params all come from one database table, and I don't want to

Re: [htmltmpl] Dynamically including templates?

2004-01-07 Thread Todd Chapman
If TMPL_INCLUDE is processed first, does that mean I can't do this? (Using HTML::Template::Expr) On Wed, Jan 07, 2004 at 02:48:35PM -0500, Jason Purdy wrote: > My guess is that it's trying to do the INCLUDE *BEFORE* doing the > variable substitution. > > So if you're stuck on making t

Re: [htmltmpl] Dynamically including templates?

2004-01-07 Thread Todd Chapman
Using the method described below, do I have to set the params in the appropriate teamplates, or can I do the include first and set all the params in one template? The reason I ask is that the params all come from one database table, and I don't want to worry about which template has which TMPL_VARs

Re: [htmltmpl] Dynamically including templates?

2004-01-07 Thread Jason Purdy
My guess is that it's trying to do the INCLUDE *BEFORE* doing the variable substitution. So if you're stuck on making the included file dynamic, I would recommend a two-sweep approach, which I see Timm Murray's post addresses. Cheers, Jason Todd Chapman wrote: I would like to pass a paramete

Re: [htmltmpl] Dynamically including templates?

2004-01-07 Thread Timm Murray
At 01:24 PM 1/7/04 -0500, Todd Chapman wrote: I would like to pass a parameter to a template that would be used to include another template. This syntax does not seem to be valid: How can I accomplish this? <> I use the output from one template to feed into another: my $tmpl1 = HTML::Temp

[htmltmpl] Dynamically including templates?

2004-01-07 Thread Todd Chapman
I would like to pass a parameter to a template that would be used to include another template. This syntax does not seem to be valid: How can I accomplish this? Thanks. -Todd --- This SF.net email is sponsored by: Perforce Software. Perfo

Re: [htmltmpl] Using HT to create HTML Email

2004-01-07 Thread Chris Faust
> That would certainly work, though I would say this instead: > > &send_email( $email_message->output ); > > Since you're sending the e-mail to a controlled (& homogeneous) list of > HTML-receivable e-mail clients, you don't have to worry about a > corresponding text version. Thanks Jason, that i

Re: [htmltmpl] Using HT to create HTML Email

2004-01-07 Thread Jason Purdy
Chris Faust wrote: Looking at the docs - would the below work? my $email_message = HTML::Template->new( filehandle => *FH, some_loop => [EMAIL PROTECTED], some_val =>$someval, some_if=>1, ); &send_email($email_message); That would certa

[htmltmpl] Using HT to create HTML Email

2004-01-07 Thread Chris Faust
Folks,   HTML::Template has preformed above and beyond all my expectations when it comes to serving user content from our site.   I currently have a bunch of reporting that happens on a daily basis which is mailed off to specific people in a HTML report. I'd like to take advantage of some of