Java Mailing List Archive

http://www.junlu.com/

Home » FreeMarker-user »

Re: [FreeMarker-user] using includes inside a macro?

Daniel Dekany

2012-04-10

Replies: Find Java Web Hosting

Author LoginPost Reply
Tuesday, April 10, 2012, 7:35:30 PM, S Ahmed wrote:

> Is it possible to have includes in a macro?

Yes.

> My macro has a varialbe isSignedIn which is defaulted to false.
>
> I want to include 2 other templates, both are navigation html
> elements, 1 for logged in users and the other for not.
>
> So depending on the isSignedIn flag, I want to display a specific include.

That should work.

--
Best regards,
Daniel Dekany


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
FreeMarker-user mailing list
FreeMarker-user@(protected)
https://lists.sourceforge.net/lists/listinfo/freemarker-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.