diff --git a/README.md b/README.md index 4dfc7b2..df90f2b 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,58 @@ handlebars-template-loader ========================== A Handlebars template loader for Webpack + +
+###Usage + +
+**Installation** +```bash +$ npm install handlebars-template-loader +``` + +
+**Add loader** +```javascript +module.exports = { + //... + loaders: [ + //... + { test: /\.hbs/, loader: "handlebars-template-loader" } + ] +}; +``` + +
+**Loading templates** + +```html + +

Hello {{name}}

+``` + +```javascript +//file: app.js +var compiled = require('./hello.hbs'); +return compiled({name: "world"}); +``` + +
+**Include tag** + + +```html + +

Hello,

+``` + + +```html + +how are you? +``` + +
+###License + +Released under the MIT license. \ No newline at end of file