$.handlebars({
templatePath: 'js/templates',
templateExtension: 'hbs',
partialPath: 'js/templates/partials',
partialExtension: 'partial',
partials: ['element'] // need to register partials
});
resolvePartialPath would always return empty string, since settings.partialPath was not set. Moving settings before registering partials (as you can see in my commit) worked for me. I tried also with separate registering and it worked. Hope I didn't break something else.
With settings like this
resolvePartialPath
would always return empty string, sincesettings.partialPath
was not set. Moving settings before registering partials (as you can see in my commit) worked for me. I tried also with separate registering and it worked. Hope I didn't break something else.