You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <ji...@apache.org> on 2006/09/06 12:39:29 UTC
[jira] Commented: (VELOCITY-446) Provide method
VelocityEngine.getTemplate(File file); so a specific file can be given
without using resource management!
[ http://issues.apache.org/jira/browse/VELOCITY-446?page=comments#action_12432814 ]
Henning Schmiedehausen commented on VELOCITY-446:
-------------------------------------------------
Using a resource loader makes sure that you cannot load arbitrary files from the file system. Inside Velocity there is no concept of files, only of templates.
I understand that this might be a convenience method at best. You would be far better off by writing a ResourceManager implementation that does exactly this for you, then plug it in using the "resource.manager.class" and just use getTemplate("path to file").
It is all in there in Velocity. :-)
> Provide method VelocityEngine.getTemplate(File file); so a specific file can be given without using resource management!
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: VELOCITY-446
> URL: http://issues.apache.org/jira/browse/VELOCITY-446
> Project: Velocity
> Issue Type: Improvement
> Components: Anakia
> Affects Versions: 1.4
> Environment: WindowsXP
> Reporter: Colbert Philippe
>
> Provide method VelocityEngine.getTemplate(File file); so a specific file can be given without using Velocity resource management locator. Sometimes, it is necessary to get a specific file rather than have Velocity resource management system.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-dev-help@jakarta.apache.org