[stringtemplate-interest] ST 4.0.5 - Recursively access properties of model objects
Mason Meier
masonhm at gmail.com
Thu May 24 18:21:33 PDT 2012
I am experimenting with String Template v4.0.5 to create some HTML pages,
but I've run into an issue that I can't seem to find the answer to. If I
am injecting an object into a template and that object contains other
objects, is there a way to access those other objects' properties? For
example, if I am injecting a User object which has a property Address which
is an object that contains the properties Street, Zip Code, City, and
State, is there any way that I can use User.address.zipCode to access the
Zip Code information? My Address.toString() is called and it inserts all of
the information, but if I want only one property, is there any way to get
it?
Thanks,
Mason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20120524/2f143aac/attachment.html
More information about the stringtemplate-interest
mailing list