In PHP I used to pass objects from the backend to the front end in JSON form, using script tags.
<script>
var serversideStuff = '<?php echo json_encode($serversideArray); ?>';
</script>
How can I pass JS objects from the server-side to the clientside using nodeJS, express and Jade. There is probably a really good way that I'm just not aware of.
Hope you can help me out.