[stringtemplate-interest] ListDictionary Iteration
Todd Stout
todd.tstout at gmail.com
Mon Apr 27 19:03:34 PDT 2009
I'm trying to iterate over a ListDictionary (C# StringTemplate) in a
template and have each list item invoke another template:
DataDefAssign(cols) :=
<<
<cols.keys: { k | <PropDef(name=<k>, type=<cols.(k)>) }>
>>
The above template does not generate anything. If I inline an anonymous
template instead of trying to invoke the PropDef template it works as
expected. Does the iteration only allow anonymous templates?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20090427/36540aa5/attachment.html
More information about the stringtemplate-interest
mailing list