Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 520 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 520 Bytes

Knots Build 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
    }
}