express-nunjucks-boilerplate

Express and Nunjucks. Pow!

Usage no npm install needed!

<script type="module">
  import expressNunjucksBoilerplate from 'https://cdn.skypack.dev/express-nunjucks-boilerplate';
</script>

README

Express & Nunjucks Boilerplate

Express and Nunjucks. Pow!

  1. Installation

clone repository
npm install
node app.js

...then you should see this if you go to: http://localhost:3000

  1. Template structure

/
--- views/
------- layout.html  (the main layout template)
------- index.html   (extends layout.html and inserts content using {% block body %})
------- example.html (extends index.html and adds to {% block content %})