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 hashes)
Built Distributions
sanic_sass-0.1.0-py3.7.egg
(5.9 kB
view hashes)
Close
Hashes for sanic_sass-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0c6ab80869a8e664af629bbdd99a810b109a2e6b7b5d4907301e9614dc5b546 |
|
MD5 | 6178e179c3d393868299f7d690014e2c |
|
BLAKE2b-256 | a6d114255fd7debc4dde0d1f46bf50e1ede587d1ceb2d0dfa69a25acaa92aa99 |