Skip to content

A minimalist staticgen for generating simple, single-page websites.

License

Notifications You must be signed in to change notification settings

fabschurt/microgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microgen can be used to generate simple one-page websites, résumés, etc.

Usage

Given the following project structure:

dist/
src/
├─ assets/
│  ├─ css/
│  │  └─ style.css
│  └─ img/
│     ├─ logo.png
│     └─ portrait.jpg
├─ data.json
└─ index.pug

…if you run:

npx github:fabschurt/microgen src dist

…then Microgen will basically:

  • copy the src/assets directory verbatim into the dist directory;
  • parse the data from src/data.json, pass it to the src/index.pug template, and finally render the whole thing as dist/index.html.

TODO

  • Write an updated and detailed CLI usage in the README
  • Add some CLI logging and user-friendly exception catching
  • Annotate the code with JSDoc and enable TypeScript type checking

About

A minimalist staticgen for generating simple, single-page websites.

Resources

License

Stars

Watchers

Forks