Discussion:
[FreeMarker-user] using includes inside a macro?
S Ahmed
2012-04-10 17:35:30 UTC
Permalink
Is it possible to have includes in a macro?

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.
Daniel Dekany
2012-04-10 20:33:36 UTC
Permalink
Post by S Ahmed
Is it possible to have includes in a macro?
Yes.
Post by S Ahmed
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
Loading...