Re: [FreeMarker-user] Nested hashes in a template
Generates text that depends on changing data (like dynamic HTML).
Brought to you by:
revusky
From: <st...@ch...> - 2004-09-20 10:26:27
|
Reed Kelly wrote: >I know that I can do the following: ><#assign h = {"name":"mouse", "price":50}> ><#assign h2 = {"name":"monkey", "price":340}> ><#assign jj = {"h":h, "h2":h2}> > >to get nested hashes. Is there a shorthand way to do it? > > Yes, you can do the following: ><#assign jj = {"h":{"name":"mouse", "price":50}, > "h2":{"name":"monkey", "price":340}}> > > > |