Compile SCSS inside of HTML files.
Project description
# WatchMySASS
_(Okay fine, it's really SCSS... but that's not as catchy, is it?)_
WatchMySASS bridges the gap between SCSS and HTML `<style>` tags. Since SCSS doesn't know how to compile HTML files, WatchMySASS allows you to compile style tags by using the attributes `type="text/scss"` or `lang="scss"`.
***
# Installation
WatchMySass is available on PyPi for download:
https://pypi.org/project/WatchMySASS/
Install WatchMySASS from the command line via pip:
```
pip install WatchMySASS
```
***
# Useage
WatchMySASS can be called from anywhere in the command line and, just like SCSS, takes the files/paths to compile as an argument.
```
WatchMySASS index.html subdirectory/file.html
```
If no arguments are passed, WatchMySASS assumes the current working directory.
```
WatchMySASS
```
WatchMySASS also has a few options:
### --watch [-w]
Continuously watch directory(s)/file(s) for changes.
```
WatchMySASS frequently-updated.html --watch
```
### --uncompressed [-u]
By default, WatchMySASS minifies the CSS output. Passing the `-u` flag overrides this feature.
```
WatchMySASS uncompressed1.html uncompressed2.html --uncompressed
```
### --destructive [-d]
By default, WatchMySASS saves compiled HTML files as `<filename>-compiled.html`. Pass the `-u` flag to save changes directly to the original HTML file.
```
WatchMySASS destructive.html --destructive
```
***
### Notes:
- WatchMySASS recursively searches directories to compile. There is currently no option for a "shallow" search.
- The `-u` flag is tempermental and doesn't always work. If you need clean, readable CSS you can always beautify your code in your text editor after compilation, and re-save.
_(Okay fine, it's really SCSS... but that's not as catchy, is it?)_
WatchMySASS bridges the gap between SCSS and HTML `<style>` tags. Since SCSS doesn't know how to compile HTML files, WatchMySASS allows you to compile style tags by using the attributes `type="text/scss"` or `lang="scss"`.
***
# Installation
WatchMySass is available on PyPi for download:
https://pypi.org/project/WatchMySASS/
Install WatchMySASS from the command line via pip:
```
pip install WatchMySASS
```
***
# Useage
WatchMySASS can be called from anywhere in the command line and, just like SCSS, takes the files/paths to compile as an argument.
```
WatchMySASS index.html subdirectory/file.html
```
If no arguments are passed, WatchMySASS assumes the current working directory.
```
WatchMySASS
```
WatchMySASS also has a few options:
### --watch [-w]
Continuously watch directory(s)/file(s) for changes.
```
WatchMySASS frequently-updated.html --watch
```
### --uncompressed [-u]
By default, WatchMySASS minifies the CSS output. Passing the `-u` flag overrides this feature.
```
WatchMySASS uncompressed1.html uncompressed2.html --uncompressed
```
### --destructive [-d]
By default, WatchMySASS saves compiled HTML files as `<filename>-compiled.html`. Pass the `-u` flag to save changes directly to the original HTML file.
```
WatchMySASS destructive.html --destructive
```
***
### Notes:
- WatchMySASS recursively searches directories to compile. There is currently no option for a "shallow" search.
- The `-u` flag is tempermental and doesn't always work. If you need clean, readable CSS you can always beautify your code in your text editor after compilation, and re-save.
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
WatchMySASS-0.1.5.tar.gz
(5.6 kB
view details)
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 WatchMySASS-0.1.5.tar.gz.
File metadata
- Download URL: WatchMySASS-0.1.5.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c900f62a5fdd8551292af25a02cb5821a344f51a0cfb962ea4426aaa790e4b2b
|
|
| MD5 |
aca282b219f1355a1bb8c389dd2b34d6
|
|
| BLAKE2b-256 |
7bbd46bc81012d0af1003aad4854d10434af8b188aa05793c38368ac52ba9882
|
File details
Details for the file WatchMySASS-0.1.5-py2-none-any.whl.
File metadata
- Download URL: WatchMySASS-0.1.5-py2-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b82c58553b34895a0f816726058a8b4bcc6ce20092f3b58b42207d7cd90eb447
|
|
| MD5 |
6fc12b87a5ed98565747a29551dfccae
|
|
| BLAKE2b-256 |
7e4f001f98ba7434f67789275611907325eec698d54b291263c22ba4a6b5f11f
|