﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
8297	Withblock template tag	Julien Phalip	nobody	"'''Important note''': This ticket can work only if #8296 gets checked in.

Currently there is the convenient `{% with %}` tag to create variables in templates. Unfortunately there is no built-in counterpart for blocks. The attached patch does just that, with the following suggested syntax:

{{{
{% withblock as myurl %}
   {% url path.to.some_view arg1,arg2,name1=value1 %}
{% and as var %}
   {% whatever %}
{% in %}
   Click the link: <a href=""{{ myurl }}"">link</a>.
   <p>{{ var }}</p> 
{% endwithblock %}
}}}"		closed	Template system	dev		wontfix			Unreviewed	1	0	0	0	0	0
