From cd49ec567b388dcf7a9f4057efbd69feefa142ad Mon Sep 17 00:00:00 2001 From: Guillaume Gouessan Date: Thu, 5 Mar 2015 11:54:12 +0100 Subject: [PATCH 1/2] Transform now accept both .html and .dom --- domthingify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } From 959fa40312f8213c086011e4f267e1279b64088d Mon Sep 17 00:00:00 2001 From: Guillaume Gouessan Date: Thu, 5 Mar 2015 11:58:26 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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`