Skip to content

Commit 7c68e13

Browse files
committed
Merge pull request django-webpack#24 from matthiask/master
mark_safe() the output of template tags
2 parents e3e26ad + 396588a commit 7c68e13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

webpack_loader/templatetags/webpack_loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from django import template
22
from django.conf import settings
3+
from django.utils.safestring import mark_safe
34

45
from ..utils import get_config, get_assets, get_bundle
56

@@ -21,7 +22,7 @@ def render_as_tags(bundle):
2122
tags.append('<script type="text/javascript" src="{}"></script>'.format(url))
2223
elif chunk['name'].endswith('.css'):
2324
tags.append('<link type="text/css" href="{}" rel="stylesheet"/>'.format(url))
24-
return '\n'.join(tags)
25+
return mark_safe('\n'.join(tags))
2526

2627

2728
def _get_bundle(bundle_name, extension, config):

0 commit comments

Comments
 (0)