AnsweredAssumed Answered

reusing macros on webscripts

Question asked by dloureiro on Jan 8, 2008
Latest reply on Jan 29, 2008 by dloureiro
Hi,
I've lots of scripts that are using macros to output content metadata as xml.

The problem i'm facing is that, in every template i've to do the same output, i've in the .ftl file repeated (copy & paste) all the macros i need. When i need to change one , i've to change all the files where i'm using the 'same' macro

It's possible to have the macros on a separated file and import it in the templates where needed and from one template execute one macro from another?

something like

<#assign macro = search.findNode("workspace://SpacesStore/c189b089-be11-11dc-a16e-6fac0b341fb1")>
<@macro.printdocprops doc=document />

Thanks in advance

Outcomes