I want to use partials as includes, but I don't (necessary) want to use the .hbs extension, at least while I'm transitioning. This extension is required by the regex in getPartialId().
I'm not sure if this is something that you want to fix, but changing the regex will work the same way for any extension (although an extension is still required):
function getPartialId(path) {
return path.match(/\/([^\/]+\/[^\/]+)\.[^\.]+$/).pop();
}
I want to use partials as includes, but I don't (necessary) want to use the .hbs extension, at least while I'm transitioning. This extension is required by the regex in getPartialId().
I'm not sure if this is something that you want to fix, but changing the regex will work the same way for any extension (although an extension is still required):