Ticket #6732: 6732.diff

File 6732.diff, 680 bytes (added by Thejaswi Puthraya, 17 years ago)

converted description to patch

  • docs/templates_python.txt

     
    629629Once you've created that Python module, you'll just have to write a bit of
    630630Python code, depending on whether you're writing filters or tags.
    631631
    632 To be a valid tag library, the module contain a module-level variable named
     632To be a valid tag library, the module must contain a module-level variable named
    633633``register`` that is a ``template.Library`` instance, in which all the tags and
    634634filters are registered. So, near the top of your module, put the following::
    635635
Back to Top