Skip to content

graincreative/knots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Tie CommonJS modules to certain pages and templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published