Re[2]: [PHPTAL] no error when var is not set ?

2009-08-25 Thread GRolf
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

Re: Re[2]: [PHPTAL] no error when var is not set ?

2009-08-25 Thread Kornel LesiƄski
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

Re: [PHPTAL] no error when var is not set ?

2009-05-15 Thread Werner
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