From 7af1811c6f9392264cd151e7bf0a9953dbb152ad Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 6 Dec 2013 11:27:33 +0100 Subject: [PATCH] Add en version of textile tags --- fnpdjango/templatetags/fnp_markup.py | 8 ++++++++ setup.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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 = '', -- 2.20.1