node-hbsfy icon indicating copy to clipboard operation
node-hbsfy copied to clipboard

Require hook (server side node).

Open DylanPiercey opened this issue 9 years ago • 1 comments

It would be cool to have a require hook built into this (similar to babel, coffee-script, etc). So that we could do:

require("hbsfy/register");
var myTemplate = require("./index.hbs");

There is already the example for "mocha hbs" but having this built in would help. This is useful for apps that use handlebars isomorphically.

DylanPiercey avatar Feb 21 '16 23:02 DylanPiercey

I like this idea, any chance you'd be willing to implement it?

kirbysayshi avatar Mar 31 '16 04:03 kirbysayshi