Template Engines  in 5 Minutes

Will Klein

What is templating?

Take HTML (or something like it)

dynamic data (typically JSON)

and bind them together.


Ever do this?

'<a href="' + link.url + '">' + link.text + '</a>'

Instead, let's do this:

<a href="{{ link.url }}">{{ link.text }}</a>

Choose a Flavor




Let's Compare

Best Practices

Pre-compile to JS functions

Render server-side

Share templates across server & client

Recommended Reading


Template Engines in 5 Minutes

By Will Klein

Navigation instructions

Press the space key or click the arrows to the right

Template Engines in 5 Minutes

Lightning talk shared at HartfordJS and New Haven JS in May/Jun 2013

  • 822
Loading comments...

More from Will Klein