So, the archives came back up.

It looks like VVS is doing getVelocityEngine().getTemplate().

Well, VelocityEngine isn't exposing getContent(),  or it's RuntimeInstance, so 
there is no way to call it from a subclass of VVS, which is what we're using.

Unfortunately, we have lots of complex subclasses of VVS, so upgrading to tools 
2.0 isn't something we can easily do....

On Sep 1, 2010, at 9:31 AM, White, Tim wrote:

> Ah, sorry, this would be from inside Java, not at the template level, thanks!
>
> We're using Velocity Tools 1.x and Velocity View Servlet.  It looks like VVS 
> has getTemplate exposed but not getContent, which is what I think we need.
>
> I'd download the 1.x source and see how VVS is calling getTemplate, but it 
> looks like the archives aren't working to get the older source...
>
> On Sep 1, 2010, at 8:49 AM, Richard Paul wrote:
>
>> Hi Tim,
>>
>> You can use #include('file.js') instead of #parse('file.js')
>> Hopefully that helps
>>
>> Cheers,
>> Richard.
>>
>> On 01/09/10 15:39, White, Tim wrote:
>>> Hi there -
>>>
>>> We're using the resource loaders to load certain files (like complex .js) 
>>> that we don't want to have Velocity actually parse.
>>>
>>> What's the best way to load a template using the resource loaders without 
>>> parsing it?
>>>
>>> Thanks!
>>>
>>> Tim White
>>>
>>> This communication is the property of Qwest and may contain confidential or
>>> privileged information. Unauthorized use of this communication is strictly
>>> prohibited and may be unlawful.  If you have received this communication
>>> in error, please immediately notify the sender by reply e-mail and destroy
>>> all copies of the communication and any attachments.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
>>> For additional commands, e-mail: user-h...@velocity.apache.org
>>>
>>>
>>
>> Faculty of 1000 and f1000 are trading names of Faculty of 1000 Limited. This 
>> e-mail is confidential and should not be used by anyone who is not the 
>> original intended recipient. Faculty of 1000 Limited does not accept 
>> liability for any statements made which are clearly the sender's own and not 
>> expressly made on behalf of Faculty of 1000 Limited. No contracts may be 
>> concluded on behalf of Faculty of 1000 Limited by means of e-mail 
>> communication. Faculty of 1000 Limited Registered in England and Wales with 
>> registered number 3739756 Registered Office Middlesex House, 34-42 Cleveland 
>> Street, London W1T 4LB
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
>> For additional commands, e-mail: user-h...@velocity.apache.org
>>
>
>
> This communication is the property of Qwest and may contain confidential or
> privileged information. Unauthorized use of this communication is strictly
> prohibited and may be unlawful.  If you have received this communication
> in error, please immediately notify the sender by reply e-mail and destroy
> all copies of the communication and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
> For additional commands, e-mail: user-h...@velocity.apache.org
>


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly
prohibited and may be unlawful.  If you have received this communication
in error, please immediately notify the sender by reply e-mail and destroy
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to