{ "info": { "author": "Jesse Dhillon", "author_email": "jesse@deva0.net", "bugtrack_url": null, "classifiers": [ "Framework :: Pylons", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", "Topic :: Software Development :: Code Generators" ], "description": "============\npyramid_scss\n============\n\nOverview\n============\nThis module provides a convenient bit of glue code around `pyScss `_, allowing your Pyramid projects to use stylesheets authored in `SCSS `_. \n\nInstallation\n============\nInstall using setuptools, e.g. (within a virtualenv)::\n\n $ pip install pyramid_scss\n\nOr if you prefer to get the latest from Github::\n\n $ git clone git://github.com/jessedhillon/pyramid_scss.git\n\nConfiguration\n===============\nThe 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 the ``[app:main]`` section of your ``project.ini``::\n\n scss.asset_path = myproject:assets/scss\n\n``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``.\n\n``static_path`` is a path to the static assets (images mainly) necessary to construct a stylesheet. Unlike ``asset_path``, this setting only accepts one path, and because of this, ``asset_path`` will be renamed to ``asset_paths`` in the future.\n\nThere are a couple of other options. ``compress`` controls whether or not the output documents are compressed (all whitespace stripped)::\n\n scss.compress = false\n\nThe other option is ``cache``, which will store both the contents of the file and the rendered output in memory::\n\n scss.cache = true\n\nUsage\n===============\nFirst, use ``config.include`` to initialize the extension::\n\n config.include(\"pyramid_scss\")\n\nSecond, assuming you are using URL dispatch, add a route to serve css::\n\n config.add_route('css', '/css/{css_path:.*}.css')\n config.add_view(route_name='css', view='pyramid_scss.controller.get_scss', renderer='scss', request_method='GET')\n\n*TODO:* Add a traversal example.\n\nIn the example above, an SCSS stylesheet located at ``myproject/assets/scss/style.scss`` (using the ``asset_path`` configured in the Configuration section) could be accessed by a URL request to ``http://myproject/css/style.css``. This route would also resolve stylesheets in subdirectories of ``asset_path``.\n\n\n============\nChange Log\n============\n\n0.1\n============\n*1 Feb 2012*\n\n- Initial public release.\n\n0.1.1\n------------\n*3 Feb 2012*\n\n- Fixed `issue #1 `_: @import could not resolve paths relative to ``asset_path``.\n\n0.2\n------------\n*19 Feb 2012*\n\n- Fixed `issue #3 `_: caching implementation was incomplete/incorrect.\n- Added ``static_path`` configuration for indicating location of static assets.\n\n0.2.2\n-----\n*30 Jan 2013*\n\n- Complete upload of code that actually fixes `issue #3 `_.\n\n0.3.0\n-----\n*28 Feb 2013*\n\n- Support pyScss 1.1.5 (code move)\n- Fix broken renderer tests (\\n issues)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jessedhillon/pyramid_scss", "keywords": "web wsgi css scss pyramid", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyramid_scss2", "package_url": "https://pypi.org/project/pyramid_scss2/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_scss2/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jessedhillon/pyramid_scss" }, "release_url": "https://pypi.org/project/pyramid_scss2/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Adds support for SCSS to Pyramid projects", "version": "0.3.0" }, "last_serial": 797642, "releases": { "0.2.2": [ { "comment_text": "", "digests": { "md5": "2e41362c3bf0e52235bee6e12b49586f", "sha256": "e6017618303fc2cc634e11077c54ecde866754e7f1c9426a35690cc214ec73dc" }, "downloads": -1, "filename": "pyramid_scss2-0.2.2.tar.gz", "has_sig": false, "md5_digest": "2e41362c3bf0e52235bee6e12b49586f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4320, "upload_time": "2013-01-30T16:45:27", "url": "https://files.pythonhosted.org/packages/32/e7/2941d7900e7b259ed9d268b555119bfe6ad7f336736a9d68639079b04223/pyramid_scss2-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "faadd267e6f4348edd4ad28fcc4b2353", "sha256": "433de5030adf0746889f18d72614efb64df510563fcb7b99d201c7f9d9c66b58" }, "downloads": -1, "filename": "pyramid_scss2-0.3.0.tar.gz", "has_sig": false, "md5_digest": "faadd267e6f4348edd4ad28fcc4b2353", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2013-02-28T20:44:55", "url": "https://files.pythonhosted.org/packages/11/f7/bba977c070283ffd266445a6bcfc63f2dd7965b283984371c99a5477ba01/pyramid_scss2-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "faadd267e6f4348edd4ad28fcc4b2353", "sha256": "433de5030adf0746889f18d72614efb64df510563fcb7b99d201c7f9d9c66b58" }, "downloads": -1, "filename": "pyramid_scss2-0.3.0.tar.gz", "has_sig": false, "md5_digest": "faadd267e6f4348edd4ad28fcc4b2353", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4440, "upload_time": "2013-02-28T20:44:55", "url": "https://files.pythonhosted.org/packages/11/f7/bba977c070283ffd266445a6bcfc63f2dd7965b283984371c99a5477ba01/pyramid_scss2-0.3.0.tar.gz" } ] }