and how could I apply this to a tal:repeat ?
I'd like to include some references to external javascriptfiles, if
they were set. For that, I created the following lines in my
template...
tal:block tal:repeat=jsfile javascriptfiles
script type=text/javascript src=${jsfile}/script
/tal:block
On 25-08-2009 at 16:29:55 GRolf ger...@pictureparking.com wrote:
I tried with
tal:block tal:condition=exists javascriptfiles tal:repeat=jsfile
javascriptfiles
script type=text/javascript src=${jsfile}/script
/tal:block
but that also gives an error.
Am I taking the wrong approach, or is
I also like using the solution that Levi suggests.
Just note that the element's default content will be used if it is
defined - this has the added value of being able to view your template
(e.g) in your browser, without any replaced variables.
So, note that this will output nothing if