can a macro have 2 nested areas?

S Ahmed <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <CAG2rwuObZfft+Ss0oXs6rVMosKd_hViWU8HwkEyMZunV056pKw@mail.gmail.com>
My page template macro looks like:

<#macro page ...>

<html>
..
<head>
JAVASCRIPT HERE
</head>
<body>
...
<#nested>
..
</body>
</html>

</#macro>


But I want to be able to do is, from within another ftl page that uses the
above macro, I want to inject javascript in the section in the head of the
html, so like:


<#macro page ...>

<html>
..
<head>
JAVASCRIPT HERE
<#javascript>
</head>
<body>
...
<#nested>
..
</body>
</html>

</#macro>


Is that possible?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
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.