you have to specify the path relative to your templates directory.

your screen is  /templates/screens/bla.vm
and you want to parse /templates/screens/bla2.vm

than you have to write in bla.vm:  #parse("screens/bla2.vm")

hope that helps ;-)

/uwe



                                                                                       
                          
                      "Ilan Azbel"                                                     
                          
                      <[EMAIL PROTECTED]>        An:       "Turbine Users List" 
<[EMAIL PROTECTED]>  
                                               Kopie:                                  
                          
                      17.06.2004 16:28         Thema:    RE: processing a .vm file 
within another .vm file       
                      Bitte antworten                                                  
                          
                      an "Turbine Users                                                
                          
                      List"                                                            
                          
                                                                                       
                          




I have checked that the file I try to include renders correctly when I call
it on its own. But I get one of those useless Velocity error message that
doesn't provide any info when I use #parse.

I get the same error when I use #include

Any ideas?





> -----Original Message-----
> From: David Demner [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 04:20
> To: 'Turbine Users List'
> Subject: RE: processing a .vm file within another .vm file
>
>
> Hi Ilan,
>
> You can use the #parse("other.vm") velocity directive.
>
> See http://jakarta.apache.org/velocity/user-guide.html#Parse for more
> information.
>
> Good luck,
>
> David
>
> -----Original Message-----
> From: Ilan Azbel [mailto:[EMAIL PROTECTED]
> Sent: Thursday June 17, 2004 7:17 AM
> To: Turbine Users List
> Subject: processing a .vm file within another .vm file
>
>
> Hello,
>
> I am using turbine with velocity.
>
> I have certain pieces of velocity code that are used throughout my
> application. I have put these common pieces of code into many
> different .vm
> files.
>
> I now have a need to "include" these .vm files inside other .vm files.
How
> can I do this? I am not sure which turbine object to use.
>
> Ilan
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to