This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A small Flask extension that makes it easy to use Stylus with your Flask application.

Usage

You can activate it by calling the stylus2css function with your Flask app as a parameter:

from flaskext.stylus2css import stylus2css stylus2css(app, css_folder=’css’, stylus_folder=’src/stylus’)

This will intercept the request to css_folder and compile de file if is necesary using the files from stylus_folder.

When you deploy your app you might not want to accept the overhead of checking the modification time of your .stylus and .css files on each request. A simple way to avoid this is wrapping the stylus2css call in an if statement:

if app.debug:
from flaskext.stylus2css import stylus2css stylus2css(app)

If you do this you’ll be responsible for rendering the .stylus files into .css when you deploy in non-debug mode to your production server.

Release History

Release History

0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
flask-stylus2css-0.1.zip (5.8 kB) Copy SHA256 Checksum SHA256 Source Sep 8, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting