6.0.2 • Published 8 years ago

visionary v6.0.2

Weekly downloads
711
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.0.0

8 years ago

4.0.0

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

2.0.0-rc2

9 years ago

2.0.0-rc1

9 years ago

1.0.0

10 years ago