On 3/26/02 10:56 PM, "Daniel Rall" <[EMAIL PROTECTED]> wrote:

> The Velocity.templateExists(String) method documents that it
> "determines if a template is accessable via the currently configured
> resource loaders".  However, the implementation appears to check for
> both ContentResource and Template Resource objects.  This is exatly
> what I need for my current use case, but from the documentation and
> method signature I couldn't tell that the method provided such lovely
> fluff.  I would've just patched the JavaDoc in CVS, but I'm thinking
> that it might be better to deprecate the method in favor of a
> better-named resourceExists(String) version.  Comments?
> 
> - Dan
> 
> p.s. I promise not to flog the author.  ;-)

Sure.

To be pedantic, it is a template. If you render it, that's another story :)

I think your suggestion is fine.  Or the javadoc can just be updated. :)

-- 
Geir Magnusson Jr.                                     [EMAIL PROTECTED]
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to