You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does browserify-handlebars support partials? I tried using Handlebars.registerPartial('myPartial', myPartialTemplate()), but I got the error The partial myPartial could not be compiled when running in runtime-only mode.
I'm requiring handlebars like this require('handlebars/runtime').default as noted in issue #1.
The text was updated successfully, but these errors were encountered:
var handlebars = require('handlebars/runtime').default;
var template = require('../views/template.handlebars');
var templatePartial = require('../views/template-partial.handlebars');
handlebars.registerPartial('myPartial', templatePartial);
var html = template(...);
Does browserify-handlebars support partials? I tried using
Handlebars.registerPartial('myPartial', myPartialTemplate())
, but I got the errorThe partial myPartial could not be compiled when running in runtime-only mode
.I'm requiring handlebars like this
require('handlebars/runtime').default
as noted in issue #1.The text was updated successfully, but these errors were encountered: