Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matheusmoreira/pug-simple
Simple whole directory pug template renderer
https://github.com/matheusmoreira/pug-simple
cli cli-app command-line-tool pug pug-cli pug-template pug-template-engine pug-templates pugjs
Last synced: 27 days ago
JSON representation
Simple whole directory pug template renderer
- Host: GitHub
- URL: https://github.com/matheusmoreira/pug-simple
- Owner: matheusmoreira
- License: agpl-3.0
- Created: 2023-08-09T09:50:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-10T11:30:57.000Z (over 1 year ago)
- Last Synced: 2024-12-14T07:33:11.766Z (about 1 month ago)
- Topics: cli, cli-app, command-line-tool, pug, pug-cli, pug-template, pug-template-engine, pug-templates, pugjs
- Language: JavaScript
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.AGPLv3
Awesome Lists containing this project
README
# pug-simple
Recursively traverses a directory tree, renders all `.pug` files in it to HTML
and then writes them to the output directory with the same tree structure.Given this:
pug/
├── files/
│ ├── index.pug
│ └── nested/
│ └── page.pug
└── templates/
└── master.pugRunning this:
pugs pug/files/ site.com/
Outputs this:
site.com/
├── index.html
└── nested/
└── page.html## Installation
npm install pug-simple
## Usage
pugs pug/files/ site.com/
## License
GNU Affero General Public License, version 3.