published by | Adam Johnson |
---|---|
in blog | Adam Johnson |
original entry | Django: A version of json_script for pre-serialized JSON strings |
Django’s json_script
template filter is a convenient and safe way to pass a larger amount of data to JavaScript.
I covered it in my post last year How to Safely Pass Data to JavaScript in a Django Template.
I found an interesting use case for json_script
in my client …