Skip to content

Refactor model generator to use Nunjucks #30

@nickevansuk

Description

@nickevansuk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions