Easy way to use Sass & SCSS with Sanic
Project description
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)
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
sanic-sass-0.1.0.tar.gz
(3.2 kB
view details)
Built Distributions
sanic_sass-0.1.0-py3.7.egg
(5.9 kB
view details)
File details
Details for the file sanic-sass-0.1.0.tar.gz
.
File metadata
- Download URL: sanic-sass-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8484a101292d98f27a4527b2c79d93c213097e60e524fe647903693c10c3dc21 |
|
MD5 | 112d9c2fdae0cf023fa8024d3c09e94d |
|
BLAKE2b-256 | 5869aca10fe0557ad530c2f4430274a66aa33db8f97808fd93a66b8a7c4082d9 |
File details
Details for the file sanic_sass-0.1.0-py3.7.egg
.
File metadata
- Download URL: sanic_sass-0.1.0-py3.7.egg
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 347e977250aea5376b5dedd0f53a251827a8d23b18dc8a63642e021108d86e93 |
|
MD5 | 28e8179d37ab39d26b21215c7904802b |
|
BLAKE2b-256 | 9d0ecb5522626de5c7aa7a5fb4419cf402968d6c143936259a0658aefdace694 |
File details
Details for the file sanic_sass-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: sanic_sass-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c6ab80869a8e664af629bbdd99a810b109a2e6b7b5d4907301e9614dc5b546 |
|
MD5 | 6178e179c3d393868299f7d690014e2c |
|
BLAKE2b-256 | a6d114255fd7debc4dde0d1f46bf50e1ede587d1ceb2d0dfa69a25acaa92aa99 |