21
<script type="text/javascript" src="{{ pathto('templatebuiltins.js', 1) }}"></script>
22
<script type="text/javascript">
24
if (!django_template_builtins) {
25
// templatebuiltins.js missing, do nothing.
28
$(document).ready(function() {
29
// Hyperlink Django template tags and filters
30
var base = "{{ pathto('ref/templates/builtins') }}";
32
// Special case for builtins.html itself
35
// Tags are keywords, class '.k'
36
$("div.highlight\\-html\\+django span.k").each(function(i, elem) {
37
var tagname = $(elem).text();
38
if ($.inArray(tagname, django_template_builtins.ttags) != -1) {
39
var fragment = tagname.replace(/_/, '-');
40
$(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>");
43
// Filters are functions, class '.nf'
44
$("div.highlight\\-html\\+django span.nf").each(function(i, elem) {
45
var filtername = $(elem).text();
46
if ($.inArray(filtername, django_template_builtins.tfilters) != -1) {
47
var fragment = filtername.replace(/_/, '-');
48
$(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>");
19
56
{% block document %}
20
57
<div id="custom-doc" class="{% block bodyclass %}{{ 'yui-t6' if pagename != 'index' else '' }}{% endblock %}">
24
61
<a title="Home page" href="{{ pathto('index') }}">Home</a> {{ reldelim2 }}
25
62
<a title="Table of contents" href="{{ pathto('contents') }}">Table of contents</a> {{ reldelim2 }}
26
63
<a title="Global index" href="{{ pathto('genindex') }}">Index</a> {{ reldelim2 }}
27
<a title="Search" href="{{ pathto('modindex') }}">Modules</a>
64
<a title="Module index" href="{{ pathto('modindex') }}">Modules</a>
29
66
<div class="nav">{{ secondnav() }}</div>