Changes between Version 45 and Version 46 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
11/26/2005 05:37:25 PM (10 years ago)
Author:
rjwittams
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v45 v46  
    413413If you're using the undocumented template decorators (simple_tag and inclusion_tag), change your calls to be members of the library class.
    414414
     415Old way:
     416{{{
     417simple_tag(func)
     418inclusion_tag('path/to/template')(func)
     419}}}
     420
     421New way:
     422{{{
    415423register.simple_tag(func)
    416 
    417 register.inclusion_tag('template/name')(func)
    418 
     424register.inclusion_tag('path/to/template')(func)
     425}}}
    419426=== Change template tags that use filters ===
    420427
     
    436443    filter_string = bits[1]
    437444    return SomethingNode(filter_string)
     445
     446register_tag('something', do_something)
    438447
    439448}}}
     
    456465    return SomethingNode(filter_expr)
    457466
     467register.tag('something', do_something)
    458468}}}
    459469
Back to Top