Re: how to define global macro?

Keats Kirsch <[email protected]>
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
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
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/webmacro-user
>
>  
>




-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click
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.