Ticket #8764: 0001-Doc-change-re-8764.patch

File 0001-Doc-change-re-8764.patch, 1.1 KB (added by peterbraden, 16 years ago)

Documentation patch clarifying situation

  • docs/ref/templates/builtins.txt

    From 6951a3cc8a0978b568706c705f4d03fe68b0b152 Mon Sep 17 00:00:00 2001
    From: Peter Braden <peterbraden@peter-bradens-macbook.local>
    Date: Mon, 2 Feb 2009 11:11:05 +0000
    Subject: [PATCH] Doc change re #8764
    
    ---
     docs/ref/templates/builtins.txt |   10 +++++++++-
     1 files changed, 9 insertions(+), 1 deletions(-)
    
    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    index b088fa6..e0298a9 100644
    a b Returns an absolute URL (i.e., a URL without the domain name) matching a given  
    708708view function and optional parameters. This is a way to output links without
    709709violating the DRY principle by having to hard-code URLs in your templates::
    710710
    711     {% url path.to.some_view arg1,arg2,name1=value1 %}
     711Either:
     712
     713    {% url path.to.some_view arg1,arg2 %}
     714
     715Or:
     716
     717{% url path.to.some_view name1=value1,name2=value2 %}
     718
     719(args and kwargs should not be mixed in the url tag as this can lead to ambiguities)
    712720
    713721The first argument is a path to a view function in the format
    714722``package.package.module.function``. Additional arguments are optional and
Back to Top