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

Refactor model generator to use Nunjucks #30

Open
nickevansuk opened this issue Apr 1, 2020 · 0 comments
Open

Refactor model generator to use Nunjucks #30

nickevansuk opened this issue Apr 1, 2020 · 0 comments

Comments

@nickevansuk
Copy link
Contributor

nickevansuk commented Apr 1, 2020

Taking inspiration from this project:

Which uses template files like this:

We should refactor to use https://mozilla.github.io/nunjucks/

This provides a clean separation between the generator which creates a data structure containing all the info relating to the properties, and the logic that generates the actual language specific files.

The idea is that any time additional data is needed in the data structure to accommodate a new language, this can be added to the generator. However the logic that generates the files is neatly packaged in each template.

This separation of concerns increases maintainability, and makes #29 easier

@nickevansuk nickevansuk changed the title Refactor to use Nunjucks Refactor model generator to use Nunjucks Apr 1, 2020
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