I have lots of things other templates might use running in a PRE_PROCESS
that loads a script (macro.tt) with all of my Macros, is going the other
way (PROCESS) better for this?



On Fri, 2006-09-22 at 11:37 -0400, Perrin Harkins wrote:
> Evan Carroll wrote:
> > Could someone please juxtapose PROCESS w/ ARGS, vs, MACRO? I'm confused
> > as to which one to use.
> 
> It's a matter of scope.  If want to split out some repeated code that no 
> other template will use, make it a MACRO in the current template.  If 
> you have something that other templates might conceivably use too, make 
> it a separate template and call it with PROCESS.
> 
> In practice, I have almost no use for MACRO.
> 
> - Perrin



_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to