This package has been deprecated

Author message:

This module is no longer being maintained

visionary

6.0.2 • Public • Published

visionary

Views loader plugin for hapi.js.

Build Status Dependency Status Peer Dependency Status Dev Dependency Status

Used to configure a views engine when using rejoice (the hapi CLI) or glue. This plugin allows configuring the views manager from a manifest which is a plain JSON file and cannot contain calls to server.views() or require the rendering engine.

If you are not loading your views manager from a static JSON manifest file, you probably don't need this plugin. See vision.

{
    "connections": [
        {
            "port": 8080
        }
    ],
    "registrations": [
        {
            "plugin": "vision"
        },
        {
            "plugin": {
                "register": "visionary",
                "options": {
                    "engines": { "html": "handlebars" },
                    "path": "/where/my/template/file/are/located"
                }
            }
        }
    ]
}

Note: You need to include vision as a dependency in your project and define it in your manifest. It's used as a peer dependency in visionary.

Lead Maintainer - Reza Akhavan

Readme

Keywords

Package Sidebar

Install

npm i visionary

Weekly Downloads

181

Version

6.0.2

License

BSD-3-Clause

Last publish

Collaborators

  • nargonath
  • devinivy
  • marsup
  • nlf