You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Brian French <bf...@ematic.com> on 2002/03/25 17:37:22 UTC

#parse question

hey,

i'm using velocity w/ turbine and i'm trying to set it up where i can multiple domains off of 1 set of templates (much easier to manage). here's my prob.

#set ($domain = $someTool.Domain)

#if($domain == "mydomain")
  #parse("/ParentHome.vm")
#else
  #parse("ChildHome.vm")
#end

in the velocity log, #parse can't seem to find the templates. this code is in Default.vm and all of them are in the screens directory.

thanx
Brian French

RE: #parse question

Posted by Gareth Coltman <ga...@majorband.co.uk>.
I 'believe' that parse and include require a path to the template root. i.e.

/screens/ParentHome.vm

should work.

Gareth

> -----Original Message-----
> From: Brian French [mailto:bfrench@ematic.com]
> Sent: 25 March 2002 16:37
> To: Turbine Users List
> Subject: #parse question
> 
> 
> hey,
> 
> i'm using velocity w/ turbine and i'm trying to set it up where i 
> can multiple domains off of 1 set of templates (much easier to 
> manage). here's my prob.
> 
> #set ($domain = $someTool.Domain)
> 
> #if($domain == "mydomain")
>   #parse("/ParentHome.vm")
> #else
>   #parse("ChildHome.vm")
> #end
> 
> in the velocity log, #parse can't seem to find the templates. 
> this code is in Default.vm and all of them are in the screens directory.
> 
> thanx
> Brian French
> 

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>