jedireza / visionary

Views loader plugin for hapi.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Views loader plugin for hapi.js

License:Other


Languages

Language:JavaScript 98.7%Language:HTML 1.3%