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

Is there is any way to use this with jinja2 templates #49

Open
saileshkush95 opened this issue Sep 15, 2020 · 4 comments
Open

Is there is any way to use this with jinja2 templates #49

saileshkush95 opened this issue Sep 15, 2020 · 4 comments

Comments

@saileshkush95
Copy link

This package is awesome and working fine with django template engine. But I'm using jinja templates engine in django now is there any way to integrate this package with jinja2 templates.

I follow this guide to integrate jinja and django
https://docs.djangoproject.com/en/3.1/topics/templates/

@fcurella
Copy link
Owner

Hi,

I think if you set the Jinja2 backend as the first item in settings.TEMPLATES, you should be able to override the provided templates with your own written in Jinja2

@saileshkush95
Copy link
Author

But then how to handle load tags

@fcurella
Copy link
Owner

@saileshkush95 You'll have to write Jinja2-specific tags, and add them to your TEMPLATES settings.

If you feel up to it, I'll be happy to review a PR to include them in the library :)

@saileshkush95
Copy link
Author

Currently I'm learning jinja2, so once i feel comfortable, sure I'll

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