Commits

mitar committed 1805323

Added missing files.

  • Participants
  • Parent commits 7818ddb

Comments (0)

Files changed (2)

File cmsplugin_markup/templatetags/__init__.py

Empty file added.

File cmsplugin_markup/templatetags/markuptags.py

+from django import template
+
+register = template.Library()
+
+@register.tag
+def rendermarkup(parser, token):
+    return RenderMarkupNode()
+
+class RenderMarkupNode(template.Node):
+    def render(self, context):
+        try:
+            return context['object'].render(context)
+        except:
+            return u''