https://github.com/chrisbward/html2pug-go
Converts HTML to Pug
https://github.com/chrisbward/html2pug-go
golang pug pug-template-engine
Last synced: about 1 month ago
JSON representation
Converts HTML to Pug
- Host: GitHub
- URL: https://github.com/chrisbward/html2pug-go
- Owner: chrisbward
- License: mit
- Created: 2025-04-06T16:30:32.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2025-04-06T20:22:46.000Z (about 2 months ago)
- Last Synced: 2025-04-10T00:09:13.992Z (about 1 month ago)
- Topics: golang, pug, pug-template-engine
- Language: Go
- Homepage:
- Size: 2.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# html2pug-go (experimental)
A utility library to map HTML to Pug equivalent, inspired by and partly ported from [html2jade](https://github.com/donpark/html2jade)
## Using the library
Examples can be found within ./examples/
## Running the tests
```bash
go test -v ./test/...
```
Note: some tests are failing as I fix the issues with the port, so I've added a flag to skip## Issues
Work on html2pug-go is currently ongoing, so YMMV - feel free to raise issues or submit a PR (with supporting tests)
## Todo
- Fix unit tests (doSkip has been added to failing tests)
- Support rendering of partials
- Increase coverage of unit tests
- CLI app