oh yeah, i forgot about that. of course, it is a little different than loading more global macros for all templates.
2010/5/4 Will Glass-Husain <[email protected]>: > Actually, it does. When merging, you can pass in a macro file. > > template.merge(context, writer, "macro.vm"); > > 2010/5/4 Nathan Bubna <[email protected]> > >> That method doesn't exist, but patches are welcome. :) >> >> On Tue, May 4, 2010 at 1:26 AM, bluejoe2008 <[email protected]> wrote: >> > by the way, i ask a question: how to load velomacro library dynamically >> in my programs? >> > is there a method such as VelocityEngine.loadMacroLibrary("mymacro.vm")? >> > >> > 2010-05-04 >> > >> > >> > >> > bluejoe2008 >> > >> > >> > >> > 发件人: Nathan Bubna >> > 发送时间: 2010-05-01 03:44:09 >> > 收件人: Velocity Users List >> > 抄送: >> > 主题: Re: velocimacro.library options >> > >> > You have to specify files. Given the diversity of ResourceLoader >> > implementations, wildcards and directories are completely impossible >> > to support. >> > On Fri, Apr 30, 2010 at 11:29 AM, ChadDavis <[email protected]> >> wrote: >> >> What are the valid options for setting the locations of my libraries? >> >> Do I have to specify files? Can I specify directories? Can I use any >> >> wildcards, etc. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
