fb241607a090625e38b836f3d326a1797e0be14e
[fnpdjango.git] / fnpdjango / templatetags / fnp_markup.py
1 from django import template
2 from django.utils.safestring import mark_safe
3 from ..utils.text import textilepl
4
5 register = template.Library()
6
7
8 @register.filter
9 def textile_pl(node):
10     return mark_safe(textilepl.textile_pl(node))
11
12 @register.filter
13 def textile_restricted_pl(node):
14     return mark_safe(textilepl.textile_restricted_pl(node))