compile html templates to hyperHTML javaScript modules
npm install hyperhtml-loader
```
npm install --save-dev hyperhtml-loader
var rules = [{
"test": /\.hyp?$/,
"use": "hyperhtml-loader"
}];
`Prefix substitution and whitespace
By using a different prefix & for html expressions, the loader is able to normalise the output for attributes, text nodes and html nodes:`
${'some text'}
&{props.myMarkup}
// becomes...
export default (render, props) => render
${'some text'}
`The module can be imported in the usual way:
`
import render from './myView.hyp'render(hyperHTML.bind(app), {
myAttr: 123,
myMarkup: '
some markup
'
})
`Example project
The example folder contains a simple webpack boilerplate that demonstrates this loader in actionTest
`
npm test
``