Changeset 7203 for django/trunk/docs/templates_python.txt
- Timestamp:
- 03/07/08 21:19:52 (7 months ago)
- Files:
-
- django/trunk/docs/templates_python.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates_python.txt
r7196 r7203 630 630 Python code, depending on whether you're writing filters or tags. 631 631 632 To be a valid tag library, the module contain a module-level variable named 633 ``register`` that is a ``template.Library`` instance, in which all the tags and 634 filters are registered. So, near the top of your module, put the following:: 632 To be a valid tag library, the module must contain a module-level variable 633 named ``register`` that is a ``template.Library`` instance, in which all the 634 tags and filters are registered. So, near the top of your module, put the 635 following:: 635 636 636 637 from django import template
