Any idea how the helpers are being loaded?
I defined them in .hygen.js:
export default {
helpers: {
getFilename: (locals, include_date) => {
// …
}
}
}
But then when I use them in the template, they are undefined:
Loaded templates: _templates
TypeError: ejs:1
>> 1| src/posts/<%= h.getFilename(locals) %>.md
h.getFilename is not a function