knots

1.0.0 • Public • Published

Knots

Tests Status

Example

const Knots = require('knots');
const knots = new Knots();

knots.tie('base', () => [require('./partials/header.js'), require('./partials/footer.js']);
knots.tie('page:contact', () => [require('./pages/contact.js')]);

knots.run(['base']);

header.js

module.exports = function HeaderPartial() {
    // stuff

    return () => {
        // onload
    }
}

Readme

Keywords

Package Sidebar

Install

npm i knots

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • brudil