How to put macros inside #assign

George Pogorelschi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Hello,

I'm new to freemaker. I have the following assign:

<#assign trueFalse = {"true" : "Yes", "false" : "No"}/>

I want to localize the values so i tried to write it like this:

<#assign trueFalse = {"true" : '<@spring.message code="radioYes"/>', "false" :
'<@spring.message code="radioNo"/>'}/>

But instead of the values for "Yes" and "No" I get the string "<@spring.message
code="radioYes"/>".
Any ideea how to implement this.



------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.