Is there any way to set a variable within a template?

I'm looking to do something similar to

<TMPL_SETVAR TITLE="My Page's Title">
<TMPL_INCLUDE 'header.tmpl'>

To include a header template that has all the <HEAD> tags in (amongst
other stuff).

I can't see any way to do this - except possibly using some cunning
stuff with HTML::Template::Expr, and even then it's not clear exactly
how I'd do it.

I'm prepared to write some kind of patch myself that would do it, but
I thought it was worth checking if there was an existing method I'd
overlooked. I've tried searching the mailing list, but no joy.
(Apologies if I missed something)

Stuart Moore

------------------------------------------------------------------------------
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to