Add en version of textile tags 0.1.9
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 6 Dec 2013 10:27:33 +0000 (11:27 +0100)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Fri, 6 Dec 2013 10:27:33 +0000 (11:27 +0100)
fnpdjango/templatetags/fnp_markup.py
setup.py

index fb24160..b6c7914 100644 (file)
@@ -1,9 +1,17 @@
+import textile
 from django import template
 from django.utils.safestring import mark_safe
 from ..utils.text import textilepl
 
 register = template.Library()
 
+@register.filter
+def textile_en(node):
+    return mark_safe(textile_en.textile(node))
+
+@register.filter
+def textile_restricted_en(node):
+    return mark_safe(textile_en.textile_restricted(node))
 
 @register.filter
 def textile_pl(node):
index 759226f..b0c7e19 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def whole_trees(package_dir, paths):
 
 setup(
     name='fnpdjango',
-    version='0.1.8',
+    version='0.1.9',
     author='Radek Czajka',
     author_email='radoslaw.czajka@nowoczesnapolska.org.pl',
     url = '',