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

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

WordPress.com Logo

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

Facebook photo

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

Connecting to %s