home / django_tickets / tickets

tickets: 8297

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8297 2008-08-13 22:31:50 2009-02-25 19:51:44 2022-03-06 03:41:52.828046 Unreviewed closed Template system     dev wontfix Withblock template tag '''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 %} }}} nobody julien   0 1 0 0 0 0
Powered by Datasette · Queries took 1.648ms