I heart Handlebars

I was assigned an extremely exciting project at work the other day. We would like to make our articles section of hipages.com.au responsive – 100% mobile first responsive! We were excited to be using the new infrastructure built with node.js. I worked alongside our engineering excellence developer, Siyang Bi to create the ‘holy grail’ approach, as Airbnb calls it, it runs on both sides of the wire, serving up real HTML on first pageload, but then kicking off a client-side JavaScript app as users interacts with the app. This means we use the same template for both server side and client side. We did this with handlebar templates.

Write your own Register Helpers

A handy tip I got taught was to look at the built-in helpers for handlebars in the git and write your own based of theirs as a starting point.

Great Reads

Advertisements