On Fri, 2005-09-16 at 12:57 +0200, Christoph Reck wrote: > Others like the ending *.vtl ;)
Sounds better, yes. [...] > I believe it is up to the application designer to do recommendations > on file naming. I'm not sure. What I mean is: since the default behaviour is bad, why not change it ? The VelocityViewServlet.getTemplate() method could juste postpone ".vtl" to the URI by default (and only handle .vtl files in its servlet-mapping clause). So, a request http://www.foo.com/bar.html would map : 1. to a template bar.html.vtl if found 2. to a regular html file bar.html otherwise Beyond the first basic samples, any webapp will need such a behaviour. So all application designers will subclass VelocityViewServlet to do it. Why not then incorporate it ? Anyway, not before veltools 2.0 of course, since there is a backward compatibility issue. But I'll post an issue since I'm convinced that the "double file extension" paradigm is the only proper way of handling template files and that it shoud definitely be the default behaviour. -- Claude > > > > If you agree I'll create a bug report about it. > > > > -- > > Claude > > :) Christoph > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
