| This class is a forwarding filter which allows to hide ".vtl" from resource URLs.
It works by building a cache of all template names in the webapp, and adding
The purpose of this feature is to allow URLs to be independant of the status of the resource:
regular file or template file, allowing this status to transparently change over time.
You can store all resources in the same directory tree, templates having
an additional ".vtl" like in "foo.html.vtl" or "bar.js.vtl".
In development mode, you can choose either to reset the cache periodically,
or manually with the "reset-cache" URI, or both.
Initialization parameters:
- template-extension: the targeted template extension (default: ".vtl").
- reset-method: "periodic" or "manual" or "both" or "none" (default: "none").
-
- reset-uri: the rest uri, for manual resets (default: "/reset-cache").
- reset-period: the period, in seconds, between two resets, for periodic resets (default: 120s).
author: Claude Brisson |