Skip to content
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

Add support for custom handlebars setup #96

Closed
papb opened this issue Mar 4, 2019 · 0 comments
Closed

Add support for custom handlebars setup #96

papb opened this issue Mar 4, 2019 · 0 comments

Comments

@papb
Copy link

papb commented Mar 4, 2019

My idea is related to #89, but instead of adding the specific replace helper, I think an extra option called --handlebars-setup would be great. Example: auto-changelog --handlebars-setup my-setup.js and then on my-setup.js file:

module.exports = function(Handlebars) {
    // Here I can call whatever Handlebars function I wish, for example I can define a custom helper
    Handlebars.registerHelper('custom', function (object) {
        // ...
    });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant