Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

An extension providing a SASS CSS renderer for Growler web applications

Project description

Latest PyPI version Testing Report (Master Branch) Coverage Report (Master Branch)

A Growler middleware package for rendering sass files into CSS to be sent to the browser.

This implementation uses libsass as the backend.


This package provides the SassMiddleware class exposed in growler.ext, as well as the ‘standard’ location of growler_sass. As a middleware class, objects are given to the application object in the order they should be called after receiving a client’s request. This object checks for the existence of a


If you have a sass source files named client/style/neat_style.sass with contents:

  > p
    color: red

And a python script to run a webapp, server/

# MUST be called like this! You cannot use import growler.ext.SassMiddleware
from growler.ext import SassMiddleware
from growler import App

app = App("SassExample")

app.use(SassMiddleware(source="client/style", dest='/styles'))

def index(req, res):
   res.send_html("""<!DOCTYPE html>
     <link href='/styles/neat_style.css' rel='stylesheet'>
     <p>This text should be red!</p>


A request made to /styles/neat_style.css will return the compiled contents of neat_style.sass:

body > p {
  color: red; }


This python package is licensed under the MIT license.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for growler-sass, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size growler_sass-0.1.0-py3-none-any.whl (5.2 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size growler-sass-0.1.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page