#26598: {{ }} is not getting parsed by pyjade as expected with django
---------------------------------+--------------------
     Reporter:  himanshu0511     |      Owner:  nobody
         Type:  Bug              |     Status:  new
    Component:  Template system  |    Version:  1.9
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 I have line of pyjade


 {{{
  a.js-track(data-track-data="{\"Job ID\":\"{{ job_details|get_or_na:'id'
 }}\",\"Job Title\":\"{{ job_details|get_or_na:'title' }}\",\"Company
 Name\":\"{{ job_details|get_or_na:'organization'|get_or_na:'name' }}\"}",
 data-track-dynamic-attrs="[\"Stakeholder\"]",href="{% url 'job_detail'
 job_details.title|slugify job_details.id %}")
 }}}

 which is being rendered as


 {{{
 <a href="/job/operations-manager/b1ac846e-6834-40c4-8bcf-122c093820b1/"
 data-track-data="{"Job ID":"{{ job_details|get_or_na:'id' }}","Job
 Title":"{{ job_details|get_or_na:'title' }}","Company Name":"{{
 job_details|get_or_na:'organization'|get_or_na:'name' }}"}" data-track-
 dynamic-attrs="["Stakeholder"]" class="js-track">
 }}}


 I expect it to {{ }} being replaced by intended values rather than being
 rendered with html.
 I am using 4.0.0 version of pyjade here as templating language.

 Stack overflow link of given bug:
 http://stackoverflow.com/questions/37006480/is-not-getting-parsed-by-
 pyjade-as-expected-with-django

--
Ticket URL: <https://code.djangoproject.com/ticket/26598>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/055.f1ce7b00d1f83676f44d3b2aff72ad80%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to