snode

Making express easy.

Usage no npm install needed!

<script type="module">
  import snode from 'https://cdn.skypack.dev/snode';
</script>

README


Easy url handling and templating selection, here is an example index.js:

var express = require('express');
var router = express.Router();
var view = require('snode')(router);

view.render([
    ['/', 'index', { title: "Home" }],
    ['/dashboard', 'dashboard', { title: "Dashboard" }]
]);

module.exports = router;