As an administrator I would like to be able to choose from a selection of template the design and layout for a resource representation.
Have the flexibility to create new templates.
The administrator must have a simple way to turn the MIR into multiple representations (text-based). The most relevant for the MIR is the HTML representation because it's not a simple 1:1 transformation.
The templating system must have a way to pick a template depending on the context or the content of the MIR (a Node HTML page might not be the same as a regular feature MIR). Ideally, these variables should be available to the templating:
The full content of the MIR
HTTP Request parameters (referring IP, request context like the path, etc., HTTP verb.)
Header
Query string
arbitrary configuration values provided by the administrator
The template should have a way to control some Response parameters, like the mime-type and HTTP results (303, 404, etc.)
As an administrator I would like to be able to choose from a selection of template the design and layout for a resource representation.
Have the flexibility to create new templates.
The administrator must have a simple way to turn the MIR into multiple representations (text-based). The most relevant for the MIR is the HTML representation because it's not a simple 1:1 transformation.
The templating system must have a way to pick a template depending on the context or the content of the MIR (a Node HTML page might not be the same as a regular feature MIR). Ideally, these variables should be available to the templating: