You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Michael Stanley <mp...@syr.edu> on 2001/04/12 00:13:39 UTC

Multiple Template paths

Is it possible to define multiple tempalte paths for Velocity within 
TurbineResource.properties file?  

I assumed that something like:

services.TurbineVelocityService.templates=/web/templates1, 
/web/templates2

would work but it doesn't seem to be working?  Is this an acceptable 
approach or is there another way?  

Mike Stanley

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Multiple Template paths

Posted by Michael Stanley <mp...@syr.edu>.
> This is a relatively new addition to the velocity service. It
> works in the the most recent TDK. The property you have listed
> won't work in the latest TDK as the properties are now the
> same as the proper velocity properties with a
> services.VelocityService prefix.

Are you referring to TDK1a13?

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Multiple Template paths

Posted by Jason van Zyl <jv...@apache.org>.
Michael Stanley wrote:
> 
> Is it possible to define multiple tempalte paths for Velocity within
> TurbineResource.properties file?
> 
> I assumed that something like:
> 
> services.TurbineVelocityService.templates=/web/templates1,
> /web/templates2
> 

This is a relatively new addition to the velocity service. It
works in the the most recent TDK. The property you have listed
won't work in the latest TDK as the properties are now the
same as the proper velocity properties with a 
services.VelocityService prefix.

Take a look at the conf/TurbineResources.properties for an
example of what the properties look like now. You can see
an example of this working in the TDK sample app where there
are two template paths being used, one for app proper and
one for the flux templates.

-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://tambora.zenplex.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org