Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Invalid
-
1.3
-
None
Description
This is another proposal.
A new "webapp.resource.loader.extension" property that gives a mandatory extension meant to be added to resource names if not already present.
The typical use-case is when you want to name your templates like "foo.html.vtl" or "foo.js.vtl", without the ".vtl" to be visible in the URLs.
It is a quite convenient convention since it allows one to store templates and regular files in the same directory tree.
Needless to say, it is fully backwards compatible.
This new extension could also be added to other resource loaders, but it would be more complex to factorize, and use-cases are less clear.