1 from __future__ import absolute_import
3 from django.template.defaultfilters import stringfilter
4 from django import template
6 register = template.Library()
8 from wiki.models import split_name
12 def wiki_title(value):
13 parts = (p.replace('_', ' ').title() for p in split_name(value))
14 return ' / '.join(parts)