bluejoe,

Give the text as such in the template file, velocity will render it exactly
as it is (when there is no directive in that text). IMO, the template file
should be as follows for you need
 hello, $user.name!

This text is formatted
  exactly
     as
        it
     is
  typed.

Let me know if this doesn't solves your problem !!

-Veerabahu
On Wed, Mar 11, 2009 at 8:50 AM, bluejoe <[email protected]> wrote:

> In Velocity template, is there any way to print a block of text without any
> rendering? For exmaple, I want to process such text as below:
>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>  hello, $user.name!
>
>  #noparse
>
> This text is formatted
>   exactly
>      as
>         it
>      is
>   typed.
>
>   using $user.name to get current user's name.
>
>  #end
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> when be rendered, I expect it looks like:
>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>  hello, bluejoe!
>
> This text is formatted
>   exactly
>      as
>         it
>      is
>   typed.
>
>   using $user.name to get current user's name.
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> Is there any directives in VTL? I need your help.

Reply via email to