Django

Code

Ticket #6732: 6732.diff

File 6732.diff, 0.7 kB (added by thejaswi_puthraya, 9 months ago)

converted description to patch

  • docs/templates_python.txt

    old new  
    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