@melb2991/puggen
v0.0.5
Published
Simple helper for generating static files with pug
Downloads
3
Readme
Puggen
Usage
const generator = Generator({
templatesDir: path.join(__dirname, 'templates'),
outputDir: path.join(__dirname, 'static'),
clean: true
});
generator((templates, generate) => {
const link = generate({
template: templates['index'],
path: `index`,
params: {
title: 'Hello!'
}
});
});