Node.js – passing data to browser (client-side)

One cool thing about node.js is ability to pass data from server to client-side with just a couple of lines of code, if you use Express+Jade.

Here’s a quick example:

One thought on “Node.js – passing data to browser (client-side)

Leave a Reply to Luca Cancel reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s