@liamnewmarch/static-plugin-nunjucks

Static plugin to add support for Nunjucks

Usage no npm install needed!

<script type="module">
  import liamnewmarchStaticPluginNunjucks from 'https://cdn.skypack.dev/@liamnewmarch/static-plugin-nunjucks';
</script>

README

Nunjucks plugin for Static

This plugin adds the Nunjucks template engine to Static.

Usage

First, install Static and this plugin

npm install @liamnewmarch/static @liamnewmarch/static-plugin-nunjucks

Next add the plugin in your static.config.js

import nunjucks from '@liamnewmarch/static-plugin-nunjucks';

export default {
  // Other Static options here (optional)
  plugins: [
    nunjucks({
      // Plugin options here (optional)
    }),
  ],
}

Options

The Nunjucks plugin is a function which can take an optional options object.