Code

Changes between Version 50 and Version 51 of BackwardsIncompatibleChanges


Ignore:
Timestamp:
11/27/05 06:51:19 (8 years ago)
Author:
adrian
Comment:

Small formatting fix

Legend:

Unmodified
Added
Removed
Modified
  • BackwardsIncompatibleChanges

    v50 v51  
    400400 
    401401New way: 
    402  
    403402{{{ 
    404403from django.core import template 
     
    424423register.inclusion_tag('path/to/template')(func) 
    425424}}} 
     425 
    426426=== Change template tags that use filters === 
    427427 
     
    430430Old way: 
    431431{{{ 
    432  
    433432class SomethingNode(Node): 
    434433    def __init__(self, filter_string): 
     
    445444 
    446445register_tag('something', do_something) 
    447  
    448446}}} 
    449447 
    450448New way: 
    451449{{{ 
    452  
    453450class SomethingNode(Node): 
    454451    def __init__(self, filter_expr): 
     
    471468 
    472469=== Templates === 
    473 Templates that are included in another template using {%include%} or {%ssi%} must explicitly {%load%} all libraries they need for their tags and filters. Some templates may have worked in the past due to previous requests registering tags : this will no longer work.   
     470 
     471Templates that are included in another template using {{{{% include %}}}} or {{{{% ssi %}}}} must explicitly {{{{% load %}}}} all libraries they need for their tags and filters. Some templates may have worked in the past due to previous requests registering tags : this will no longer work.