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 Jinja templates #25

Open
markhobson opened this issue Oct 10, 2023 · 2 comments
Open

Add support for Jinja templates #25

markhobson opened this issue Oct 10, 2023 · 2 comments

Comments

@markhobson
Copy link
Contributor

This repository currently provides Nunjucks templates for JavaScript projects. It would be useful to also provide Jinja templates to support Python projects.

The syntax is identical and I have successfully copy & pasted the Nunjucks template into a Python Flask app. The question is how best to support this setup in a maintainable way? Ideally a pip package like govuk-frontend-jinja is to govuk-frontend would be provided.

@alex9smith
Copy link
Contributor

Thanks @markhobson! We'd talked internally about how we might want to handle other templating languages but we didn't expect it to come up quite so quickly in reality. This is on our roadmap to investigate more in the future, so the suggestion of the pip package is much appreciated.

@markhobson
Copy link
Contributor Author

No problem! Happy to help once you decide how best to proceed.

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

2 participants