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

Providing an extended context to handlebars for advanced template? #38

Closed
jourdain opened this issue Mar 27, 2015 · 2 comments · Fixed by #39
Closed

Providing an extended context to handlebars for advanced template? #38

jourdain opened this issue Mar 27, 2015 · 2 comments · Fixed by #39

Comments

@jourdain
Copy link
Contributor

I'm currently investigating tools for documented our code base and mdoc seems to have everything that I care about. Except that I would love to provide an extended context to the handlebars templates.

The reason behind that is to generate a unique custom template across a various set of projects that belong to the same family while keeping some flexibility regarding some labels/lists/links/etc. And while we are getting helper access to handlebars, we are missing some control to the input context.

So I was wondering if I add a new optional entry into the configuration (ctx), would you be ok with that?Then I would simply add a ctx argument from the config.ctx to each compiled template.

Let me know if that seems reasonable, and if so, I'll do a pull request.

Thanks,

Seb

@millermedeiros
Copy link
Owner

context seems like an useful feature. thanks for the pull request (#39)

@millermedeiros
Copy link
Owner

@eddiemonge is helping maintaining this project but I decided to merge it since change was simple and will increase flexibility.

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

Successfully merging a pull request may close this issue.

2 participants