Thank you for your reply!
There are some directives and references in the text, so I want to know how to 
let the Velocity template parser ignore them without any parsing.

-bluejoe

----- Original Message ----- 
From: "veerabahu subramanian" <[email protected]>
To: "Velocity Users List" <[email protected]>
Sent: Wednesday, March 11, 2009 12:19 PM
Subject: Re: Is there any way to print a block of text without any rendering in 
Velocity template?


> 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