From fadb3fd0bbeb28bfb701628e077287c2bcf70857 Mon Sep 17 00:00:00 2001 From: Jeremy Carbaugh Date: Tue, 12 Apr 2011 10:28:33 -0400 Subject: [PATCH] update README to reflect new template tag variable support --- README.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index af4a15c..f835321 100644 --- a/README.rst +++ b/README.rst @@ -178,7 +178,7 @@ html5 :: - + xhtml @@ -469,6 +469,11 @@ These tags can by accessed by loading the media template tag collection. {% load media %} +Any tag that has a path argument can use either a string or a variable:: + + {% media_url "images/avatar.png" } + {% media_url user.profile.avatar_path %} + If you'd like to make the mediasync tags global, you can add the following to your master urls.py file:: @@ -669,6 +674,7 @@ Change Log * provide receiver for compiling SASS before syncing * show media directory listing when serving locally in debug mode * add processor for Google's Closure Compiler API for JavaScript +* template tags can now take a variable as the path argument 2.1.0 =====