trifid-renderer-simple

5.0.1 • Public • Published

trifid-renderer-simple

A simple renderer for Trifid. To inject the graph into the response HTML, Mustache is used to render the HTML template.

Usage

Only the template options must be provided. The renderer prefix can be used to point to files in the trifid-renderer-simple package folder. The vocab property can be used to provide a JSON-LD file that contains RDF Schema triples with labels for the predicates.

Example

The following example tells Trifid to use the trifid-renderer-simple renderer and points to the default template and vocab:

"renderer": {
  "module": "trifid-renderer-simple",
  "template": "renderer:templates/index.html",
  "vocab": "renderer:vocab.json" 
}

Readme

Keywords

none

Package Sidebar

Install

npm i trifid-renderer-simple

Weekly Downloads

954

Version

5.0.1

License

MIT

Unpacked Size

11.9 kB

Total Files

5

Last publish

Collaborators

  • ludovicm67
  • zazuko-bot