A tool to inline CSS files into HTML.
Project description
HTML utils
Removing Comments from files
Comments are not being removed when:
- there is a
"
or a'
in the same line. - there is a
[finalComment]
in the Comment. All other Comments are removed.
Usage
file_model.removeComments(<SinglelineComments>,<MultilineCommentStart>,<MultilineCommentEnd>)
jsFile.removeComments("//", "/*", "*/")
Uglify
Uglify removes all the \n
Usage
file_model.uglify()
Change images to base64
Replaces the source in -Tags with the Base64 String of the image. Accepted image types are:
- bmp
- gif
- jpeg
- png
- svg
Usage
file_model.imagesToBase64()
Project details
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
Close
Hashes for html_utils_becothal-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9221520d1be2a1845e1bb786c9ad9cbe1e2b56a8b607e6b99c3753f42cf1530 |
|
MD5 | 52cf6972a4a72f8b44df870fcb2baafc |
|
BLAKE2b-256 | 308fd39481376eb5a80399f2a4ec2f303b92c9ae1b4ea0510484d2a52039c3ad |
Close
Hashes for html_utils_becothal-1.0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4c0129fe9dfa3e2952a4e676cade986d5726d4e477e77dc3ee8157917896cb7 |
|
MD5 | 3c5011e5e7fe7b342986b374a192b204 |
|
BLAKE2b-256 | 3e45790b66ea82ad7d6299f503d80aed40b55082891cbe93c4f8222c01f0959c |