[Templates] Syntax

2011-03-05 Thread John M. Dlugosz
The following does not work: a href=[% c.uri_for_action(/gallery/show, $name) %] but through trying different things, I found that this does: ..., $name)... why? What is the first line interpreted as? It doesn't give any error. It would seem to produce no second argument at all.

Re: [Templates] Syntax

2011-03-05 Thread Mike Raynham
On 05/03/11 11:06, John M. Dlugosz wrote: The following does not work: a href=[% c.uri_for_action(/gallery/show, $name) %] but through trying different things, I found that this does: ..., $name)... why? What is the first line interpreted as? It doesn't give any error. It

Re: [Templates] Syntax

2011-03-05 Thread Larry Leszczynski
Hi John - The following does not work: a href=[% c.uri_for_action(/gallery/show, $name) %] In template code if you are outside a quoted string you do not need the dollar sign to get the value of a variable. So here you just need: a href=[% c.uri_for_action(/gallery/show, name) %] If