diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2011-09-10 02:52:37 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2011-09-10 02:52:37 +0000 |
| commit | 5fbf5fd3dd82257d81421fb9b891fa53131ee894 (patch) | |
| tree | 62d5192a6ba14f886ceedeb3fda604a8787733f0 /docs | |
| parent | d14bf8c62b66a6f58252d492c2eeca1c952e508c (diff) | |
Fixed #16793. Added more cross referencing to the load tag's documentation. Thanks to bluejeansummer for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/custom-template-tags.txt | 3 | ||||
| -rw-r--r-- | docs/topics/templates.txt | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/docs/howto/custom-template-tags.txt b/docs/howto/custom-template-tags.txt index 170fa91696..eaab36c293 100644 --- a/docs/howto/custom-template-tags.txt +++ b/docs/howto/custom-template-tags.txt @@ -64,12 +64,15 @@ following:: register = template.Library() + .. admonition:: Behind the scenes For a ton of examples, read the source code for Django's default filters and tags. They're in ``django/template/defaultfilters.py`` and ``django/template/defaulttags.py``, respectively. + For more information on the :ttag:`load` tag, read its documentation. + Writing custom template filters ------------------------------- diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt index 80cfafd614..da57c724e3 100644 --- a/docs/topics/templates.txt +++ b/docs/topics/templates.txt @@ -623,17 +623,17 @@ Custom tag and filter libraries =============================== Certain applications provide custom tag and filter libraries. To access them in -a template, use the ``{% load %}`` tag:: +a template, use the :ttag:`load` tag:: {% load comments %} {% comment_form for blogs.entries entry.id with is_public yes %} -In the above, the ``load`` tag loads the ``comments`` tag library, which then +In the above, the :ttag:`load` tag loads the ``comments`` tag library, which then makes the ``comment_form`` tag available for use. Consult the documentation area in your admin to find the list of custom libraries in your installation. -The ``{% load %}`` tag can take multiple library names, separated by spaces. +The :ttag:`load` tag can take multiple library names, separated by spaces. Example:: {% load comments i18n %} |
