Templates

Responses to metadata requests for directories and files are rendered using templates. The response type and the content of the response can be modified by overriding the default templates or providing own custom templates. The templates delivered with FSI Server are located in webapps/fsi/private/internal/templates. These should not be modified or overridden as they are required by the Webinterface and NeptuneLabs client applications like FSI Viewer. Own custom templates can be placed in [CONFIG DIRECTORY]/templates/ in the subdirectories list or info. A template must end with the suffix.ftl and is addressed by the tpl parameter in the metadata requests (see part II, "Image and Metadata Addressing"). The templates are rendered using the freemarker template engine, documented at http://www.freemarker.org/docs/.