You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Chris Rousseau <Ch...@timerasolutions.com> on 2001/06/14 20:59:07 UTC
Including a velocimacro file
Don't think it can be successfully done...just confirming...Can a file
containing more velocimacros be included from within the
VM_global_library.vm (or other specified velocimacro.library) file?
## like this:
#include ("more_macros.vm")
Thanks,
CR
Re: Including a velocimacro file
Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Chris Rousseau wrote:
>
> Don't think it can be successfully done...just confirming...Can a file
> containing more velocimacros be included from within the
> VM_global_library.vm (or other specified velocimacro.library) file?
>
> ## like this:
> #include ("more_macros.vm")
>
> Thanks,
> CR
No, and #parse() won't work either. Amusing thread though.
If you have more than one VM library file that you want loaded at
startup, you can specify as many as you want in the setup :
velocimacro.library = file1.vm file2.vm file3.vm file4.vm
and it will read and process all...
geir
--
Geir Magnusson Jr. geirm@optonline.net
System and Software Consulting
Developing for the web? See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!
Re: Including a velocimacro file
Posted by Jon Stevens <jo...@latchkey.com>.
on 6/14/01 11:59 AM, "Chris Rousseau" <Ch...@timerasolutions.com>
wrote:
> Don't think it can be successfully done...just confirming...Can a file
> containing more velocimacros be included from within the
> VM_global_library.vm (or other specified velocimacro.library) file?
>
> ## like this:
> #include ("more_macros.vm")
>
> Thanks,
> CR
Of course.
Did you try it?
-jon
--
"Open source is not available to commercial companies."
-Steve Ballmer, CEO Microsoft
<http://www.suntimes.com/output/tech/cst-fin-micro01.html>