diff --git a/README.md b/README.md index baa31f6..bf367f4 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,14 @@ var MyView = View.extend({ }); ``` +It can also work with a traditionnal `.html`extension: + +```javascript +var MyView = View.extend({ + template: require('./path/to/template.html') +}); +``` + Add `domthingify` to your browserify transform list. * With browserify: `browserify app.js -o bundle.js -t domthingify` diff --git a/domthingify.js b/domthingify.js index 15f7e6a..f1e0dd8 100644 --- a/domthingify.js +++ b/domthingify.js @@ -2,7 +2,7 @@ var through = require('through'); var domthing = require('domthing'); module.exports = function (fileName) { - if (!/\.dom$/i.test(fileName)) { + if (!/\.dom$|\.html$/i.test(fileName)) { return through(); }