Author: Alex
Date: 2011-09-09 19:52:37 -0700 (Fri, 09 Sep 2011)
New Revision: 16774
Modified:
django/trunk/docs/howto/custom-template-tags.txt
django/trunk/docs/topics/templates.txt
Log:
Fixed #16793. Added more cross referencing to the load tag's documentation.
Thanks to bluejeansummer for the patch.
Modified: django/trunk/docs/howto/custom-template-tags.txt
===================================================================
--- django/trunk/docs/howto/custom-template-tags.txt 2011-09-10 02:42:05 UTC
(rev 16773)
+++ django/trunk/docs/howto/custom-template-tags.txt 2011-09-10 02:52:37 UTC
(rev 16774)
@@ -64,12 +64,15 @@
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
-------------------------------
Modified: django/trunk/docs/topics/templates.txt
===================================================================
--- django/trunk/docs/topics/templates.txt 2011-09-10 02:42:05 UTC (rev
16773)
+++ django/trunk/docs/topics/templates.txt 2011-09-10 02:52:37 UTC (rev
16774)
@@ -623,17 +623,17 @@
===============================
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 %}
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.