Skana

June 2018

Namespace-based loader for Nunjucks

JavaScript
Node.js
Nunjucks

What is Skana?

Skana is a custom loader for Nunjucks allowing the usage of namespaces in templates.

Motivation

Back when I was messing with Symfony years ago, I always found the templating fascinating. Using namespace instead of real path leaves the code clean and we don't have to do anything if we change the template location beside changing a configuration file. During the development of a project, using Nunjucks templates located in various folders (like plugins), I created this tiny loader for the project needs.