[extensions-web] templatetags: mark tags as safe to avoid escaping



commit 59076a14fa1583f77cc32c34579761a9f867c4c6
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Fri Dec 7 19:35:29 2018 +0400

    templatetags: mark tags as safe to avoid escaping

 sweettooth/templates/templatetags/static_paths.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/sweettooth/templates/templatetags/static_paths.py 
b/sweettooth/templates/templatetags/static_paths.py
index 5397630..608475f 100644
--- a/sweettooth/templates/templatetags/static_paths.py
+++ b/sweettooth/templates/templatetags/static_paths.py
@@ -12,6 +12,7 @@ from django import template
 from django.contrib.staticfiles.storage import staticfiles_storage
 from django.contrib.staticfiles.storage import ManifestStaticFilesStorage
 import json
+from django.utils.safestring import mark_safe
 
 register = template.Library()
 js_paths = None
@@ -19,6 +20,7 @@ img_paths = None
 
 
 @register.simple_tag
+@mark_safe
 def static_js_paths():
     global js_paths
 
@@ -38,6 +40,7 @@ def static_js_paths():
 
 
 @register.simple_tag
+@mark_safe
 def static_img_paths():
     global img_paths
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]