generator-wintersmith-nunjucks

Create new Wintersmith projects using Nunjucks templating engine.

Usage no npm install needed!

<script type="module">
  import generatorWintersmithNunjucks from 'https://cdn.skypack.dev/generator-wintersmith-nunjucks';
</script>

README

Wintersmith-Nunjucks Generator [Dependency Status] (https://david-dm.org/mmintel/generator-wintersmith-nunjucks#info=devDependencies)

[Yeoman] (http://yeoman.io) generator for [Wintersmith] (http://wintersmith.io) using [Nunjucks] (http://mozilla.github.io/nunjucks/)

If you didn't know: Nunjucks is a good alternative node based templating engine to Django, Swig or Twig.

Features

  • set up a local server and automatically reload on change
  • HTML5 boilerplate
  • compile sass files using node sass
  • asset minification
  • adds jQuery and Modernizr from CDN with local fallback
  • includes Twitter Bootstrap

Getting started

First install [node.js] (http://nodejs.org/).

Then get [yeoman] (http://yeoman.io). Type this in your terminal:

npm install -g yo

Install the generator and [wintersmith] (http://wintersmith.io/) from npm. Open your terminal and type:

npm install -g generator-wintersmith-nunjucks wintersmith

Usage

Generate a new project:

yo wintersmith-nunjucks

To start a local server and watch for changes, use:

grunt dev

To create a production-ready build, use:

grunt build

Want to contribute?

These things are still to do:

  • Choose between ruby or node sass
  • Choose different frameworks, e.g. Foundation or Bootstrap

License

MIT License