[ic] Template::Flute question

Stefan Hornburg (Racke) racke at linuxia.de
Thu Nov 7 13:34:46 UTC 2013


On 11/06/2013 10:54 PM, Dan Busarow wrote:
> I couldn't find a Template::Flute mailing list and I thought this would be the next best place to ask.
> 
> I'm looking for a way to set a variable in the HTML in order to have its value passed on to an include file.
> 
> In TT2 I would use
> 
> <% page_title="My Title" %>
> 
> or in ITL
> 
> [set page_title]My Title[/set]
> 
> I'm sure Flute can do this but I'm not seeing it in the docs.
> 
> Thanks,
> Dan

That kind of defeats the purpose of Template::Flute (avoid mini programming language in the template).

If you pass the value to Template::Flute, it would be visible to included files as well.
Also you can get access to the DOM tree of the template for advance manipulations, but
please tell me why you want to set this in the template.

Regards
	Racke

-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list