Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Nunjucks Templating by Mozilla

DZone's Guide to

Nunjucks Templating by Mozilla

· Java Zone
Free Resource

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

This is mainly just a FYI type post, but earlier this week I discovered Nunjucks, a client-side templating language by Mozilla. I've been pretty much sold on Handlebars as my template language, but Nunjucks has a lot going for to it. Out of the box it seems to support a lot more than Handlebars (inheritance and asynchronous support for example) and the template synax is as friendly as Handlebars.

Of course, my only real requirement for template syntax is to not suck as bad as Jade but that's just me.

It supports client-side (obviously) and server-side (for Node) so it's ready to go pretty much anywhere. I'd love to see this supported inHarp in the future.

If you want to take it for a test drive, I built an online Nunjucks tester here:http://www.raymondcamden.com/demos/2014/oct/15/test.html. You can't test everything there of course (inheritance for example), but you can quickly test out some of the syntax and see how it feels.

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}