Discussion:
[Middlegen-user] use of Velocity #include
Matthew Hegarty
2004-03-10 15:45:01 UTC
Permalink
Hello

I am having trouble getting the Velocity 'include' directive to work alongside Middlegen, eg:

I have the directive:

#include( "copyright.txt" )

At the top of my vm file, but am not seeing any data from this included file in the generated file, after Middlegen is run.

I can't find anything helpful in either the Middlegen or Velocity documentation to do with this.

Has anyone managed to get this working? If so, I would appreciate your advice.

Matt
Eivind Waaler
2004-03-10 17:04:02 UTC
Permalink
In the plugin definition in build.xml you set a mergedir where the include
file is found.

In our templates we use #parse (#include works too?):
#parse("copyright.txt")

Regards
.eivind
Post by Matthew Hegarty
Hello
#include( "copyright.txt" )
At the top of my vm file, but am not seeing any data from this included file in the generated file, after Middlegen is run.
I can't find anything helpful in either the Middlegen or Velocity documentation to do with this.
Has anyone managed to get this working? If so, I would appreciate your advice.
Matt
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Loading...