Including Macros Globally
"Anna Putnam" <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <18D8E943D728594C864C7AA427FDC6221E3DA6FB@CL4EXBE03.ad2.softcom.biz> |
Hello,
I am using Struts 2, Freemarker and Sitemesh.
I have written the macro below to format phone numbers and would like to
include it globally in my main decorator. The only place I can get the
macro to be seen is in the file I am trying to use it. Doing something
like <#include "global/macros.ftl" /> does not seem to work. Does
anyone know how to achieve this?
Thanks in advance.
<#macro formatedPhone number>
(${number?substring(0,3)})
${number?substring(3,6)}-${number?substring(6,10)}
</#macro>
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user