Class DynamicJsonToTemplateConverter

Converts JSON data by using it as input parameters for rendering a template. The extension field can be used to only support a specific type of templates, such as ".ejs" for EJS templates.

To find the templates it expects the Representation metadata to contain SOLID_META.template triples, with the objects being the template paths. For each of those templates there also needs to be a CONTENT_TYPE triple describing the content-type of that template.

The output of the result depends on the content-type matched with the template. In case JSON is the most preferred output type, the input representation will be returned unless a JSON template is defined.

Hierarchy (view full)

Constructors

Methods

""