I get it. I needed to do this:
var Handlebars = require('handlebars/runtime')['default'];
Which is really cool, it even works in a browser with Browserify.
, (, , "" ) , Handlebars ( ):
handlebars ./templates/ -c handlebars -f templates.js
:
var Handlebars = require('handlebars');
require('./templates');
require('./helpers/logic');
module.exports.something = function() {
...
template = Handlebars.templates['template_name_here'];
...
};