[Templates] question on dynamically include

James. L perlwle@yahoo.com
Fri, 27 Apr 2007 12:13:52 -0700 (PDT)


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 %]
...
...
[% 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 %]

the quote is causing problem..

thanks.

James.

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