From: Radek Czajka Date: Fri, 6 Dec 2013 10:27:33 +0000 (+0100) Subject: Add en version of textile tags X-Git-Tag: 0.1.9 X-Git-Url: https://git.mdrn.pl/fnpdjango.git/commitdiff_plain/7af1811c6f9392264cd151e7bf0a9953dbb152ad?ds=sidebyside Add en version of textile tags --- diff --git a/fnpdjango/templatetags/fnp_markup.py b/fnpdjango/templatetags/fnp_markup.py index fb24160..b6c7914 100644 --- a/fnpdjango/templatetags/fnp_markup.py +++ b/fnpdjango/templatetags/fnp_markup.py @@ -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): diff --git a/setup.py b/setup.py index 759226f..b0c7e19 100755 --- 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 = '',