#28468: Template braces within {% with %} are not evaluated
               Reporter:  Liquid Scorpio   |          Owner:  nobody
                   Type:  Uncategorized    |         Status:  new
              Component:  Template system  |        Version:  1.11
               Severity:  Normal           |       Keywords:
           Triage Stage:  Unreviewed       |      Has patch:  0
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
 I am not sure if this is a bug or limitation, I will add here anyways.

 Consider following code inside a django template:

 {% include 'partials/_message.html' with
             message_body="You need <strong>{{ perm_name }}</strong>
 permission to access the content." %}

 The issue is related to the output rendered in browser for *message_body*
 when {% include %} is executed.

 ==== Expected output:
 You need **read** permission to access the content.

 ==== Actual output:
 You need **{{ perm_name }}** permission to access the content.

 ==== Notes
 While the included template evaluates the passed in **<strong>** tag, it
 does not evaluate the variable **{{ perm_name }}** and outputs it

Ticket URL: <https://code.djangoproject.com/ticket/28468>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to