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

Improve extensibility #7

Merged
merged 8 commits into from
Feb 2, 2019
Merged

Improve extensibility #7

merged 8 commits into from
Feb 2, 2019

Conversation

OriR
Copy link
Owner

@OriR OriR commented Apr 6, 2018

Changes the entire API of the renderer.

The renderer no longer depends on handlebars, instead it uses tagged template literals and the package react-docgen-renderer-template to create the template with the right context.

This simplifies everything and allows for better extensibility, if someone wants to use handlebars they can, it doesn't force them to use/not use it - as long as the end template is constructed through react-docgen-renderer-template or has the same API - the template has an instantiate function that knows how to handle all of the passed context.

@OriR OriR merged commit 5f01cac into master Feb 2, 2019
@OriR OriR deleted the improve-extensibility branch February 2, 2019 19:27
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 this pull request may close these issues.

1 participant