Saturday, December 10, 2011

Passing array from node.js express to jade template client side javascript jquery

And stackoverflow to the rescue again!
I was trying to pass a variable (an array) to the Jade templating engine in order to manipulate it on the cient side javascript, but it was a pain in the butt, the accepted answer worked here:

http://stackoverflow.com/questions/7681821/passing-objects-to-client-in-node-express-jade

Thanks internet!

1 comment: