-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can system helpers be overridden? #91
Comments
I double-checked - the system helpers can be overriden. I created this file with overrides for two system helpers: const overrides = {
inlineLinks: function () {
return 'some link text'
},
orphans: function () {
return 'whatever'
}
}
module.exports = overrides I then ran dmd with the path to my custom helpers. const output = await dmd(fixture, { helper: 'test/overrides/helpers.js' })
console.log(output) The output looked as expected:
It should have worked - could you post some example code please that fails to work correct, I will check it. |
Closing this, I can't reproduce the issue - existing system helpers and partials can be overriden by passing in |
I need to override system helpers, I override the default "link" helper by creating a plugin. But it didn't work.
The text was updated successfully, but these errors were encountered: