Hacker News new | ask | show | jobs
by bigmanwalter 3469 days ago
Or, even better, I just inject the JSON data into a script tag with a var declaration, sort of like:

<script> var models = {{=models}}; </script>

And just like that, I have my data accessible as a global variable.