Changes between Version 45 and Version 46 of BackwardsIncompatibleChanges
- Timestamp:
- Nov 26, 2005, 5:37:25 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackwardsIncompatibleChanges
v45 v46 413 413 If you're using the undocumented template decorators (simple_tag and inclusion_tag), change your calls to be members of the library class. 414 414 415 Old way: 416 {{{ 417 simple_tag(func) 418 inclusion_tag('path/to/template')(func) 419 }}} 420 421 New way: 422 {{{ 415 423 register.simple_tag(func) 416 417 register.inclusion_tag('template/name')(func) 418 424 register.inclusion_tag('path/to/template')(func) 425 }}} 419 426 === Change template tags that use filters === 420 427 … … 436 443 filter_string = bits[1] 437 444 return SomethingNode(filter_string) 445 446 register_tag('something', do_something) 438 447 439 448 }}} … … 456 465 return SomethingNode(filter_expr) 457 466 467 register.tag('something', do_something) 458 468 }}} 459 469