Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

chrishelgert/hapi-preact-views

Repository files navigation

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-present Chris Helgert. See License for details.