incremental-bars-loader

0.1.0 • Public • Published

incremental-bars loader

Webpack loader for incremental-bars, an Handlebars backend for incremental-dom

Configuration

//webpack.config.js
  ...
  module: {
    rules: [
      ...
      { 
        test: /\.handlebars$/, 
        use: ['babel-loader', 'incremental-bars-loader'] 
      }
    ]
  }
 

Usage

import template from 'mytemplate.handlebars'
import IncrementalDOM from 'incremental-dom'
 
let el = document.getElementById('to-render')
let data = {name: 'Hello', message: 'world'}
 
IncrementalDOM.patch(el, template, data)

See a complete application example

Readme

Keywords

none

Package Sidebar

Install

npm i incremental-bars-loader

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • blikblum