I have a pretty heavyweight query on the server that results in a new page render, and I\'d like to pass along some of the results of the query to the client (as a javascrip
You can't inline a JS object like that, but you can JSON.stringify it before:
JSON.stringify
<script type="text/javascript"> var data = !{JSON.stringify(data)}; </script>