rykener / django-manifest-loader

Simplifies webpack configuration with Django
https://django-manifest-loader.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
104 stars 12 forks source link

Support for Jinja2 #21

Closed rob101 closed 3 years ago

rob101 commented 4 years ago

Is support planned for Jinja2 templates?

rykener commented 4 years ago

Hi @rob101, I hadn't previously considered it, however, after a bit of research, it doesn't look too difficult to port over. I should be able to work on it next week.

rykener commented 3 years ago

@rob101 if you or anyone else has an example of what you would consider a "standard" method of jinja2 installation in Django, and how that project installs external template tags like this that would make porting the code over a lot easier for me.

rob101 commented 3 years ago

@shonin I think the best implementation is probably https://niwinz.github.io/django-jinja. The easiest way to install a template tag is perhaps to create a custom extension?

rykener commented 3 years ago

@rob101 thank you for the feature request. It has just been released in v1.0.0. Please find the documentation here: https://django-manifest-loader.readthedocs.io/en/stable/docs/usage.html#use-as-jinja-template-filter