Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# Imports
3from django import template
4from django.forms.utils import flatatt
5import os
6from superdjango.contrib.support.loader import content
8register = template.Library()
10# Tags
13@register.inclusion_tag("support/includes/ajax_load_help.html", takes_context=True)
14def ajax_load_help(context, terms):
15 pass
18@register.inclusion_tag("support/includes/load_help.html", takes_context=True)
19def load_help(context, terms):
20 pass
23@register.inclusion_tag("support/includes/snippet.html", takes_context=True)
24def load_snippet(context, name, include_title=True):
26 snippet = content.fetch("snippet-%s" % name)
28 return {
29 'include_title': include_title,
30 'snippet': snippet
31 }
34@register.inclusion_tag("support/includes/support_info.html", takes_context=True)
35def support_info(context, identifier=None, page=None):
36 pass