Ticket #6732: 6732.diff
File 6732.diff, 680 bytes (added by , 17 years ago) |
---|
-
docs/templates_python.txt
629 629 Once you've created that Python module, you'll just have to write a bit of 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 named632 To be a valid tag library, the module must contain a module-level variable named 633 633 ``register`` that is a ``template.Library`` instance, in which all the tags and 634 634 filters are registered. So, near the top of your module, put the following:: 635 635