Friday, April 3, 2020

how to use django template language inside script html tag using django-jsRender

As I know, there is no way to use Django template language inside Javascript block so I searched for a way how to do it, I found a Django app on github  called django-jsrender but unfortunately, there isn't enough documentation for this app and when I tried to use it I couldn't and this is my code:

Capture.PNG

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a1c20606-bf66-4638-a006-be592a938c66%40googlegroups.com.

No comments:

Post a Comment