Ticket #13350: 13350.diff

File 13350.diff, 1.3 KB (added by Derek Willis, 14 years ago)
  • docs/ref/templates/builtins.txt

    From 542508d50a49166dd3f020ee2b7ecc0017a5717c Mon Sep 17 00:00:00 2001
    From: Derek Willis <dwillis@gmail.com>
    Date: Sun, 1 Aug 2010 22:38:09 -0400
    Subject: [PATCH] Documentation on autoescape should mention endautoescape
    
    ---
     docs/ref/templates/builtins.txt |    8 +++++++-
     1 files changed, 7 insertions(+), 1 deletions(-)
    
    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    index 0477653..21ce0b2 100644
    a b autoescape  
    2525
    2626Control the current auto-escaping behavior. This tag takes either ``on`` or
    2727``off`` as an argument and that determines whether auto-escaping is in effect
    28 inside the block.
     28inside the block. The block is closed with an ``endautoescape`` ending tag.
    2929
    3030When auto-escaping is in effect, all variable content has HTML escaping applied
    3131to it before placing the result into the output (but after any filters have
    The only exceptions are variables that are already marked as "safe" from  
    3636escaping, either by the code that populated the variable, or because it has had
    3737the ``safe`` or ``escape`` filters applied.
    3838
     39Sample usage::
     40
     41    {% autoescape on %}
     42        {{ body }}
     43    {% endautoescape %}
     44
    3945.. templatetag:: block
    4046
    4147block
Back to Top