https://github.com/jackmordaunt/inliner
Create a self contained html file that can be displayed correctly in a browser.
https://github.com/jackmordaunt/inliner
bundle cli html inliner rust tool workflow yarn
Last synced: about 1 month ago
JSON representation
Create a self contained html file that can be displayed correctly in a browser.
- Host: GitHub
- URL: https://github.com/jackmordaunt/inliner
- Owner: JackMordaunt
- Created: 2019-10-12T09:19:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T03:20:29.000Z (over 6 years ago)
- Last Synced: 2025-07-02T14:48:52.737Z (12 months ago)
- Topics: bundle, cli, html, inliner, rust, tool, workflow, yarn
- Language: Rust
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# inliner
> Create a self contained html file that can be displayed correctly in a browser.
`inliner` is expected to be used with a build script that produces optimized
output, such as `yarn build`. Optimizing `css` and `js` and fetching remote
resources is outside the scope of this tool - at least for now.
## Features
- [x] Parse valid html text input into a tree structure.
- [x] Replace all links with the content of the corresponding file from disk.
- [x] Render new html with inlined content.
Text files are embedded directly.
Media files are embedded as base64 encoded data urls.