Split HTML into threads. Weave them back together.
Project description
๐งต htmlweaver
Split HTML into threads. Weave them back together.
A simple CLI tool that splits AI-generated HTML files into clean, separate HTML, CSS, and JavaScript files โ and exports them as Vue or React components.
โจ Features
- ๐ช Split โ Break a single HTML file into
.html,.css, and.js - ๐งฉ Combine โ Merge separate files back into one HTML file
- โก Vue Export โ Convert HTML into a Vue Single File Component
.vue - โ๏ธ React Export โ Convert HTML into a React functional component
.jsx
๐ฆ Installation
pip install htmlweaver
๐ Usage
Split
htmlweaver split --html mypage.html --output ./output
Output:
output/
โโโ mypage.html
โโโ mypage.css
โโโ mypage.js
Combine
htmlweaver combine --html ./output/mypage.html \
--css ./output/mypage.css \
--js ./output/mypage.js \
--output ./output/mypage_final.html
Export to Vue
htmlweaver export --html mypage.html --format vue --output ./output
Output:
output/
โโโ Mypage.vue
Export to React
htmlweaver export --html mypage.html --format react --output ./output
Output:
output/
โโโ Mypage.jsx
โโโ Mypage.css
๐๏ธ Project Structure
htmlweaver/
โโโ htmlweaver/
โ โโโ __init__.py
โ โโโ cli.py
โ โโโ splitter.py
โ โโโ combiner.py
โ โโโ utils.py
โ โโโ exporters/
โ โโโ __init__.py
โ โโโ vue_exporter.py
โ โโโ react_exporter.py
โโโ tests/
โโโ pyproject.toml
โโโ README.md
๐ฃ๏ธ Roadmap
- Split HTML into separate files
- Combine files back into HTML
- Export as Vue component
- Export as React component
-
--watchmode for auto-split on save - TypeScript / TSX support
- SCSS export
- Angular component export
- VS Code Extension
- AI-powered smart component splitting
- Web app at htmlweaver.io
๐ค Contributing
Contributions are welcome!
Feel free to open an issue or submit a pull request.
๐ License
MIT ยฉ abutlb
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file htmlweaver-1.0.0.tar.gz.
File metadata
- Download URL: htmlweaver-1.0.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b61e2a39a5393fe24a2c8b50eca2d970edc4970e5f8b999c931c61e26ace04db
|
|
| MD5 |
7e778290125775d212a601f8c4dd77ce
|
|
| BLAKE2b-256 |
ef65df4fbed5cefe1f98f7221067150f6e009b51a7c429f2e49b1220e2999a26
|
File details
Details for the file htmlweaver-1.0.0-py3-none-any.whl.
File metadata
- Download URL: htmlweaver-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36e583feb77d257fdbfc8a8ee6e77fd8cde940a8e822ce137f53dcfb23620078
|
|
| MD5 |
7193a103580cb5e34359ce0fea8289eb
|
|
| BLAKE2b-256 |
e31b569fd39c99440e0c7c16923371e4305c8a2723ac458ad6f651eff84b81b6
|