--- Clinton Gormley <[EMAIL PROTECTED]> wrote:

> On Fri, 2007-04-27 at 12:13 -0700, James. L wrote:
> > hi, 
> > 
> > i have few pre-generated html files(not a complete
> > html) that i want to include in my other template
> > dynamically based on user request. such as:
> > 
> > [% INCLUDE header.tt %] 
> > [% INCLUDE html/$foo %]
> 
> [% INSERT "html/${foo}" %]
> 
> INSERT does no processing so is good for HTML,
> INCLUDE would be used for
> another template

thanks, i wasn't aware of this INSERT
 
> > ...
> > ...
> > [% INCLUDE footer.tt %]
> > 
> > i would pass {foo => "foo.html"} to the template..
> how
> > do i do that in TT ? 
> > 
> > another question: how to write the following
> > correctly? 
> > [% "<input type='hidden' name='matched_cols'
> value='[%
> > inputs.values.join(',')' %]>" IF inputs %]
> 
> <input type="hidden" name="matched_cols" value="[%
> IF inputs; inputs.values.join(',') %]">

yes. that sorta work. except it still generates a
hidden field regardless of the defines of 'inputs'.
 
> > 
> > the quote is causing problem..
> 
> 
> hth
> 
> clint

thanks again.

James.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to