Template Tag Variables

Posted by: scoopseven 12 years, 3 months ago

If you've ever needed to save a variable spot in a Django template to be rendered later, there's special tags that allow you to do this:

{% templatetag openvariable %}somevariable{% templatetag closevariable %}

When this code is rendered by Django, you'll be left with a nice:

{{somevariable}}

in your rendered template.

Currently unrated


Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom