Thursday, November 19, 2015

Connecting Django template variables to Javascript

So from time to time I need to pass some data from the server (using Django!) to the client and have some javascript or JQuery or whatever on the client process that data.

My javascript skills are lacking, so I wrote a gist to remind myself how to do something. It can be better, for sure, but its a starting point.

See: example.js

No comments: