2 from django.views.generic import TemplateView, ListView, DetailView
4 from librarian.document import WLDocument
5 from librarian.builders import StandaloneHtmlBuilder
8 class XslView(TemplateView):
9 template_name = 'wlxml/wl2html.xsl'
10 content_type = 'application/xslt+xml'
12 def get_context_data(self):
13 ctx = super().get_context_data()
15 for t in models.Tag.objects.all():
16 tags.setdefault(t.type, []).append(t.name)
21 class EditorCSS(ListView):
22 template_name = 'wlxml/editor.css'
23 content_type = 'text/css'
24 queryset = models.Tag.objects.all()
27 class TagsView(ListView):
28 queryset = models.Tag.objects.all()
31 class TagView(DetailView):
32 queryset = models.Tag.objects.all()