Sanic-sass 0.1.0
A simple and pythonic way to implement Sass & SCSS into Sanic without using webpack!
Features
- On the fly compiling to speed up development with our middleware.
- Compile your entire application at once for at production
Examples
Precompiled
from sanic import Sanic
from sanic_sass import SassManifest
webserver = Sanic(name='precompiled')
manifest = SassManifest('/static/css', './css', './hidden', css_type='sass')
manifest.compile_webapp(webserver, register_static=True)
webserver.run(host='0.0.0.0', port=8000)
As middelware
from sanic import Sanic
from sanic_sass import SassManifest
webserver = Sanic(name='middelware')
manifest = SassManifest('/static/css', './css', './hidden', css_type='scss')
manifest.middelware(webserver)
webserver.run(host='0.0.0.0', port=8000, debug=True)
Metadata
Release files for sanic-sass 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sanic-sass-0.1.0.tar.gz | 3.2 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sanic_sass-0.1.0-py3.7.egg | Legacy Egg format | - | - | Details |
| sanic_sass-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / sanic-sass-0.1.0.tar.gz
| Download URL | sanic-sass-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8484a101292d98f27a4527b2c79d93c213097e60e524fe647903693c10c3dc21
|
|
BLAKE2b-256 checksum How to use checksums |
5869aca10fe0557ad530c2f4430274a66aa33db8f97808fd93a66b8a7c4082d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Release files / sanic_sass-0.1.0-py3.7.egg
| Download URL | sanic_sass-0.1.0-py3.7.egg |
|---|---|
| Size | 5.9 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
347e977250aea5376b5dedd0f53a251827a8d23b18dc8a63642e021108d86e93
|
|
BLAKE2b-256 checksum How to use checksums |
9d0ecb5522626de5c7aa7a5fb4419cf402968d6c143936259a0658aefdace694
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|
Release files / sanic_sass-0.1.0-py3-none-any.whl
| Download URL | sanic_sass-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0c6ab80869a8e664af629bbdd99a810b109a2e6b7b5d4907301e9614dc5b546
|
|
BLAKE2b-256 checksum How to use checksums |
a6d114255fd7debc4dde0d1f46bf50e1ede587d1ceb2d0dfa69a25acaa92aa99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5
|