You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Grégory Goessens <go...@ugr.be> on 2002/10/03 14:02:27 UTC
parse HTML (include file) with velocity
Hi
When i have <!--#include file="/inclusions/barrenav.html" --> (by
example) in my template, there is a problem with the display. I have
only a white screen.
How to do? Is it possible ?
Thx for your Help
Grégory Goessens
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: parse HTML (include file) with velocity
Posted by Daniel Rall <dl...@finemaltcoding.com>.
Grégory Goessens <go...@ugr.be> writes:
> Hi
>
> When i have <!--#include file="/inclusions/barrenav.html" --> (by
> example) in my template, there is a problem with the display. I have
> only a white screen.
>
> How to do? Is it possible ?
>
> Thx for your Help
This type of question is best asked on the
velocity-user@jakarta.apache.org mailing list.
The answer is that you need to escape the text "#include" in your
template to avoid having Velocity treat it as a...well...Velocity
#include directive.
Section 13 of the "User Manual" is on this specific topic:
http://jakarta.apache.org/velocity/user-guide.html#Escaping%20VTL%20Directives
--
Daniel Rall <dl...@finemaltcoding.com>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>