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

> ...
> ...
> [% 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(',') %]">

> 
> the quote is causing problem..


hth

clint


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

Reply via email to