[stringtemplate-interest] Template quirks

Roman Odaisky roma at qwertty.com
Fri Sep 5 02:42:39 PDT 2008


Greetings,

I have a small template like this:

img.st
<img alt="$alt$" src="...$it$...$title$..." $extra$ />

When I call
$list:{$it.sublist:{$it:img(title={sometitle})$}$}$

everything works.

When I change that to
$list:{x|$x.sublist:{y|$y:img(title={sometitle})$}$}$

then ST begins to think x and/or y are template formal parameters, and thus it 
will reject template application because it lacks arguments.

StringTemplate 3.1 for Python.

Is that intended behavior?

-- 
WBR
Roman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2286 bytes
Desc: not available
Url : http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20080905/572a705f/attachment.bin 


More information about the stringtemplate-interest mailing list