I'm trying to load handlebar partials into both metalsmith-layouts and metalsmith-hbt-md because I first process markdown as mustache, then convert to HTML, then insert into the layout which is also mustache.
It appears that you're using require(partialFilename). When it's HTML, I get the following error:
I'm trying to load handlebar partials into both metalsmith-layouts and metalsmith-hbt-md because I first process markdown as mustache, then convert to HTML, then insert into the layout which is also mustache.
It appears that you're using
require(partialFilename)
. When it's HTML, I get the following error:HTML isn't valid JS, so the cause of the error is obvious. Can arbitrary extensions be made to work?