Nominally Patriotic Meathead
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    hapi-preact-viewspublic

    Hapi-preact-views

    npm version Build Status Build status codecov Standard - JavaScript Style Guide Greenkeeper badge

    hapi-preact-views: Preact as view-engine in hapi.js

    Examples

    See examples

    Options

    • layout - preact-component for a global layout
    • cache - require-cache for layout + view (default: true)
    • beforeRender - function, that should be called before rendering the views (useful for css-in-modules)

    Contributing

    1. Fork it
    2. Create your feature branch
    3. Commit your changes
    4. Push to the branch
    5. Create new Pull Request

    LICENSE

    Copyright (c) 2017 Chris Helgert. See License for details.

    install

    npm i hapi-preact-views

    Downloadsweekly downloads

    9

    version

    1.1.0

    license

    MIT

    last publish

    collaborators

    • avatar