Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly templateEngine

templateEngine: TemplateEngine<Dict<any>>

Methods

canHandle

Private constructTypeMap

Private findType

  • findType(typeMap: Record<string, string>, typePreferences?: ValuePreferences): string

handle

handleSafe