Improved template syntax - spec-14 (Completed)

Improved template syntax - spec-14 (Completed)

Thursday 02 June 2005 3:13:41 am - 1 reply

Author Message

Hans Melis

Thursday 02 June 2005 3:31:15 am

Hi,

That spec has been implemented in 3.6.0, but your usage of the set function is wrong. <b>set</b> can only be used to re-initialise existing variables, not to define new ones.

With regards to the new syntax, the correct way would be:

{def $i=5}
i: {$i}
{set $i=10}
i: {$i}

An {undef} at the end would clean up $i, but this will also happen automatically at the end of the execution of that template.

Hans
http://blog.hansmelis.be

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.