This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@zazuko/trifid-renderer-entity

0.4.16 • Public • Published

Trifid plugin to render entities

Quick start

Install this Trifid plugin using:

npm install @zazuko/trifid-renderer-entity

And then add in the config.yaml file the following part:

middlewares:
  # […]
  entity-renderer:
    module: "@zazuko/trifid-renderer-entity"
    config:
      # ignore some specific paths
      ignorePaths:
        - /query

Define your own css/template

Specify the path where the handlebars template is located

middlewares:
  # […]
  entity-renderer:
    module: "@zazuko/trifid-renderer-entity"
    config:
      path: file:./some-path/your-template.hbs

Rendering options

Under the hood, this plugin uses rdf-entity-webcomponent, that accepts the same configuration options.

Add any of these options under the config section

middlewares:
  # […]
  entity-renderer:
    module: "@zazuko/trifid-renderer-entity"
    config:
      compactMode: false
      technicalCues: true
      embedNamedNodes: false

Run an example instance

npm run example-instance

/@zazuko/trifid-renderer-entity/

    Package Sidebar

    Install

    npm i @zazuko/trifid-renderer-entity

    Weekly Downloads

    2

    Version

    0.4.16

    License

    MIT

    Unpacked Size

    22.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • zazuko-bot
    • tpluscode
    • ludovicm67
    • ktk