Hi,
i would like to introduce a configuration option similar to Facelets:
"facelets.VIEW_MAPPINGS" in JSFTemplating.
Description from the Facelets docs:
A semicolon (;) delimited list of resources that Facelets should use.
If no resource paths are specified, Facelets will handle all requests
(DEFAULT).
If one or more paths are specified, Facelets will only use the ones
specified,
otherwise fall back on the parent or default ViewHandler (JSP).
Note, this requires the FacesServlet in your web.xml to be mapped
with a prefix for capturing multiple file types ex: /faces/*.
(the last sentence is not quite correct, as you could also map the
faces-servlet to multiple suffixes for capturing multiple file types)
to keep things somewhat "consistent" i would propose:
* context-param > param-name: jsftemplating.VIEW_MAPPINGS
* allow simple *.suffix and /prefix/* mappings
* additionally allow "mixed" mappings: /prefix/*.suffix
Implementing this would allow us to bypass JSFTemplating in a user-
configurable way and before the LayoutDefinitionManagers try to
decide if they the requested resource is an acceptable template.
we might also consider to use regex-patterns, but i think we should
also allow at least simple suffix and prefix mappings, as most users
are probably more comfortable with this kind of mappings.
Before I start implementing this, or even check the changes in ;) I
am would appreciate to hear about your opinions.
Imre
(qoob)