Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    pyramid_scss 0.2.1

    Download button

    No screenshots available
    Downloads: 137  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jesse Dhillon | More programs
    Other/Proprietary Li... / FREE
    February 20th, 2012, 18:39 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    pyramid_scss description

    Adds support for SCSS to Pyramid projects

    pyramid_scss is a Python module that provides a convenient bit of glue code around pyScss, allowing your Pyramid projects to use stylesheets authored in SCSS.

    Installation

    Install using setuptools, e.g. (within a virtualenv):

     pip install pyramid_scss

    Or if you prefer to get the latest from Github:

    git clone git://github.com/jessedhillon/pyramid_scss.git

    Configuration

    The only setting which is necessary is asset_path which is an asset spec which points to the root folder where your SCSS stylesheets are. An easy way to set that is to add this line to your project.ini:

     scss.asset_path = myproject:assets/scss

    asset_path can be a newline delimited string of multiple asset paths. Each path will be searched, in order, until the matching stylesheet is found. An unmatched request will raise pyramid.httpexceptions.HTTPNotFound.

    There are a couple of other options. compress controls whether or not the output documents are compressed (all whitespace stripped)

     scss.compress = false

    The other option is cache, which will store both the contents of the file and the rendered output in memory.

     scss.cache = true

    Usage

    First, use config.include to initialize the extension:

     config.include("pyramid_scss")

    Second, assuming you are using URL dispatch, add a route to serve css:

     config.add_route('css', '/css/{css_path:.*}.css')

     config.add_view(route_name='css', view='pyramid_scss.controller.get_scss',
     renderer='scss', request_method='GET')



    Product's homepage

    Requirements:

    · Python
    · pyramid

      


    TAGS:

    pyramid projects | pyramid SCSS | pyramid | SCSS | pyScss

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM