node package manager

hapi-preact-views

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.