From: Keats K. <ke...@xa...> - 2005-03-23 15:39:58
|
According to the Wiki page, http://webmacro.org/MacroDirective: ==================================== ... You can also create global macro libraries and make WebMacro include them automatically into every template. To do this, set the "Macros.Include" configuration setting to a space-separated list of templates you want to parse for macros. These templates will be loaded via WebMacro's usual template loading mechanism and all macros found will be available in every template loaded subsequently. For example, you could put this line into your WebMacro.properties file: ## Include all macros from globalMacros.wmm: Macros.Include: globalMacros.wmm Note, that only that only the macro definitions will be included into other templates. Things like setting variables or other side effects, will be ignored. ... ==================================== Welcome to WM. Keats Peter Smith wrote: >new to wm. > >trying to find way to define global macro without >including a 'header.wm' in all my templates. i >already have a header.wm, actually, but it's different >for about 10 subprojects I have, and I need to add a >macro (~60 lines) to all of them. can I do this >another way? either create a global macro that is >scooped-up automatically by everyone, or >programmatically do a template.includeTemplate()-type >operation? > >thanks. > >p.s. javadoc api is broken on site. > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click >_______________________________________________ >Webmacro-user mailing list >Web...@li... >https://lists.sourceforge.net/lists/listinfo/webmacro-user > > > |