The only thing I could see in the guide is "For security reasons, the file
to be included may only be under TEMPLATE_ROOT".  Don't know if this
includes subdirectories, but probably not.  Maybe this is your problem?

Just for fun, what is the useless error message?  I'm always looking for a
good laugh.

David

-----Original Message-----
From: Ilan Azbel [mailto:[EMAIL PROTECTED] 
Sent: Thursday June 17, 2004 7:29 AM
To: Turbine Users List
Subject: RE: processing a .vm file within another .vm file


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