djangosnippets.org: Latest snippets tagged with 'set'http://djangosnippets.org/tags/set/2007-12-10T11:21:22.125956-06:00blocksetter
2007-12-10T11:21:22.125956-06:00jerzykhttp://djangosnippets.org/snippets/503/<p>Sometimes you need to set a little bit more complex variable in the template (e.g. Title), that is being used more than once.
this simple tag defines "blockset" tag.
{% blockset variable-name %}{%endblockset}
everything inside body (between blockset/endblockset) is being assigned to the variable "variable-name".</p>
<p>I have found this quite …</p>
Freely redistributable