#18888: Block append / prepend template tags
---------------------------------+-----------------------------
     Reporter:  insin            |      Owner:  nobody
         Type:  New feature      |     Status:  new
    Component:  Template system  |    Version:  1.4
     Severity:  Normal           |   Keywords:  template blocks
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+-----------------------------
 Add {% append %} and {% prepend %} tags which act the same as {% block %}
 in a child template, but which implicitly insert {{ block.super }} before
 or after the child template's block contents, respectively.

 I've [https://github.com/visionmedia/jade/#a12 made use of this feature in
 Jade] and found it nice for blocks which often collect content as they go
 down the inheritance chain, like script blocks in <head> and before
 <body>.

 It's not so much that having to use {{ block.super }} is annoying or
 tiresome in any way, but having used them elsewhere, the semantics of
 append/prepend tags just ''feel'' nice in templates.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18888>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to