Hide keyboard shortcuts

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 

2 

3from django import template 

4from django.forms.utils import flatatt 

5import os 

6from superdjango.contrib.support.loader import content 

7 

8register = template.Library() 

9 

10# Tags 

11 

12 

13@register.inclusion_tag("support/includes/ajax_load_help.html", takes_context=True) 

14def ajax_load_help(context, terms): 

15 pass 

16 

17 

18@register.inclusion_tag("support/includes/load_help.html", takes_context=True) 

19def load_help(context, terms): 

20 pass 

21 

22 

23@register.inclusion_tag("support/includes/snippet.html", takes_context=True) 

24def load_snippet(context, name, include_title=True): 

25 

26 snippet = content.fetch("snippet-%s" % name) 

27 

28 return { 

29 'include_title': include_title, 

30 'snippet': snippet 

31 } 

32 

33 

34@register.inclusion_tag("support/includes/support_info.html", takes_context=True) 

35def support_info(context, identifier=None, page=None): 

36 pass