Archive for the ‘Templating’ Category

Four Killer Features of Nunjucks

Nunjucks calls itself "A rich and powerful templating language for JavaScript", which sounds about right. It's not intentionally super lightweight like Mustache or the slightly more robust (but still pretty light) Handlebars. It's a full-on language, p...

Getting Started with CSS Modules

Posted on: No Comments
There isn’t one single approach with CSS Modules to making the JavaScript templates, the CSS files, or the build steps to make them work. In this post, which is part of a series on CSS Modules, we'll look at one approach. The goal of this post is to ...

Using Inline Partials and Decorators with Handlebars 4.0

Posted on: No Comments
Handlebars is one of the most widely used JavaScript templating libraries for both client-side and server-side rendering. It implements the mustache specification but adds some extra sauce to make working with templates easier. If you're new to Handleb...

Getting Started with Underscore.js

Posted on: No Comments
This article was peer reviewed by Agbonghama Collins and Ryan Chenkie. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Underscore.js is a JavaScript library, written by Jeremy Ashkenas, that provides funct...

Transphporm – a Different Kind of Template Engine

Posted on: No Comments
If there is one thing the world needs, it’s definitely another PHP template engine! But wait, this one is different! Many PHP template engines (Smarty, Blade, Twig…) are little more than abstracted PHP code, making it easier to write loops, if/then...