Search code examples
javascriptpythonbottle

how to send variable to javascript?


I am sending a tuple as my variable to javascript. But i could not find a way. I am using bottle framework.


Solution

  • Encode it into JSON. It'll convert to a javascript array.