You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by ICM S CP guest 5 <IC...@icn.siemens.de> on 2001/10/01 15:36:14 UTC

Where is the TEMPLATE_ROOT directory?

The include file may only be under the TEMPLATE_ROOT directory - but where is it?
I putted my text file in the template directory but nothing happened.
Do I need to set an environment variable called TEMPLATE_ROOT?

Andreas


-----Original Message-----
From: ICM S CP guest 5 [mailto:ICM-S-CP.guest-5@icn.siemens.de]
Sent: Montag, 1. Oktober 2001 15:23
To: velocity-user@jakarta.apache.org
Subject: RE: How to import external files in .vm files


Ops, you're right - I just found it the velocity users guide!
Thanks


-----Original Message-----
From: Dan Bachelder [mailto:chowda@chowda.net]
Sent: Montag, 1. Oktober 2001 15:15
To: velocity-user@jakarta.apache.org
Subject: Re: How to import external files in .vm files


#include
or
#parse 

the second parses the VTL the first does not.

On Mon, 01 October 2001, ICM S CP guest 5 wrote:

> 
> Hi,
> 
> how can I import an external file into my .vm file?
> Is there something like a #File.Read ("mytext.txt") function?
> 
> Andreas

</dan>

Re: Where is the TEMPLATE_ROOT directory?

Posted by Jon Stevens <jo...@latchkey.com>.
on 10/1/01 6:36 AM, "ICM S CP guest 5" <IC...@icn.siemens.de>
wrote:

> The include file may only be under the TEMPLATE_ROOT directory - but where is
> it?
> I putted my text file in the template directory but nothing happened.
> Do I need to set an environment variable called TEMPLATE_ROOT?
> 
> Andreas

Keep reading all the documentation on the site.

-jon