Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.
/ puggen Public archive

Simple helper for generating static files with pug

Notifications You must be signed in to change notification settings

melbourne2991/puggen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!'
    }
  });
});

About

Simple helper for generating static files with pug

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published