1 from django import template
2 # from toolbar import models
3 register = template.Library()
5 from django.template.defaultfilters import stringfilter
7 @register.filter(name='bookname')
11 ' '.join(s.capitalize() for s in part.split('_'))\
12 for part in fileid.split('$'))
14 @register.inclusion_tag('explorer/file_tree_part.html')
15 def tree_part(document):
16 return {'document': document}