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

Jinja2 extension returns string quotes around output #45

Open rob101 opened 3 years ago

rob101 commented 3 years ago

For example: {{ '*baseTenant*.js'|manifest_match('<script src="{match}"></script>') }}

results in:

"<script src="/static/baseAddMembership~baseTenant~f585d785-baebc8a04938f4824d09.bundle.js"></script>"

Which means the script is displayed as text rather than as a script element.