{ "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 necessary to construct a stylesheet. Unlike ``asset_path``, this setting only accepts one path. ``static_url_root`` is required if you set ``static_path``, and it serves as a path prefix when generating the URL for a static resource.\n\n``output_path`` is the path where generated assets will be output, such as spritemaps. Also, ``output_url_root`` is a required setting if ``output_path`` is provided, and will be prefix the path component of the URL generated in reference to compiled resources.\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.3\n------------\n*12 May 2013*\n\n- Fixed `issue #4 `_: exposed ASSETS_* and STATIC_* SCSS configuration settings.\n- Various minor bugfixes, see commit history.\n\n0.4\n------------\n*17 Apr 2014*\n\n- Compatibility with Python 3 and pyScss 1.2.", "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_scss", "package_url": "https://pypi.org/project/pyramid_scss/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyramid_scss/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jessedhillon/pyramid_scss" }, "release_url": "https://pypi.org/project/pyramid_scss/0.4/", "requires_dist": null, "requires_python": null, "summary": "Adds support for SCSS to Pyramid projects", "version": "0.4" }, "last_serial": 1064056, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5f79c55e400fdf41fe17ce79e5802497", "sha256": "e33e8520c0ea0d2a233ad0a71b6331a4848dafe81429ada209e85888346a6b76" }, "downloads": -1, "filename": "pyramid_scss-0.1.tar.gz", "has_sig": false, "md5_digest": "5f79c55e400fdf41fe17ce79e5802497", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3585, "upload_time": "2012-02-02T08:43:16", "url": "https://files.pythonhosted.org/packages/6d/39/e283d0e15e17084b09eac16b7e1fa5e770b5cde2418da76195d02badcafb/pyramid_scss-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "49b46a435292ba47c8a55eb66960063a", "sha256": "2420b9042c08fac540e829e3139142291d166c3b0e7caf845bf16959b8c65946" }, "downloads": -1, "filename": "pyramid_scss-0.1.1.tar.gz", "has_sig": false, "md5_digest": "49b46a435292ba47c8a55eb66960063a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3726, "upload_time": "2012-02-03T22:27:14", "url": "https://files.pythonhosted.org/packages/b5/1f/8e0cf2906652ccebf6deaf3b56e9f989701dfb4b05f783f39766da4d5ff2/pyramid_scss-0.1.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "82c0b7cafe0fea0c5825cc5cfa2730e6", "sha256": "8551b068743414037cc2f4f4082556f57b7fa28bf6f6c9ce36b9ee53eb53ecb4" }, "downloads": -1, "filename": "pyramid_scss-0.2.tar.gz", "has_sig": false, "md5_digest": "82c0b7cafe0fea0c5825cc5cfa2730e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5187, "upload_time": "2012-02-20T00:55:30", "url": "https://files.pythonhosted.org/packages/de/1a/19c285f66087199368cb53d2565730cc56e66d8d3821f8e15550d5fbfaef/pyramid_scss-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e4ce59a0a48b3cb62d81656f86fe8166", "sha256": "29fc6f37b8a24b1fd81dc54db094694714b8af157b5e239bd1e5d8ae81eca0f4" }, "downloads": -1, "filename": "pyramid_scss-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e4ce59a0a48b3cb62d81656f86fe8166", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5190, "upload_time": "2012-02-20T08:06:25", "url": "https://files.pythonhosted.org/packages/d2/66/44772b804db11d0dd635d48e74e546675fd965fe7773633826aae44516ed/pyramid_scss-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e395b3e06c71afeb43e22e99f4ecf3fc", "sha256": "869a3838593ac0503940b4b50ea61624f414ce85c6f8a4ed2b95f02eaf713773" }, "downloads": -1, "filename": "pyramid_scss-0.3.tar.gz", "has_sig": false, "md5_digest": "e395b3e06c71afeb43e22e99f4ecf3fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5642, "upload_time": "2013-05-12T22:52:35", "url": "https://files.pythonhosted.org/packages/ed/07/52d35ee75f27bcfb87b00ef66d4be9439b9fceb26d470de7bdcd835a42a3/pyramid_scss-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "636d7d09144796424151f966e53e107e", "sha256": "592dda9b286cad7200954a890c9148ebd258f0fb6b56e1776fea636ed58583e2" }, "downloads": -1, "filename": "pyramid_scss-0.3.1.tar.gz", "has_sig": false, "md5_digest": "636d7d09144796424151f966e53e107e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5659, "upload_time": "2013-06-20T01:34:43", "url": "https://files.pythonhosted.org/packages/ee/70/ab45d5ed91a71003ef2000ca0772622edf7096cdb2698f8010f810508feb/pyramid_scss-0.3.1.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "7ce4108518315bbd520fff89ff16c8c3", "sha256": "825900f421194d63af0dcc851bc72dfb258d2de8fdc5a6ea81cb90307c61596f" }, "downloads": -1, "filename": "pyramid_scss-0.4.tar.gz", "has_sig": false, "md5_digest": "7ce4108518315bbd520fff89ff16c8c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4665, "upload_time": "2014-04-18T02:23:00", "url": "https://files.pythonhosted.org/packages/f2/88/3d97ce8fb01e3fe59ddd8593de863528586c9c6a63613710cd16460c409b/pyramid_scss-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7ce4108518315bbd520fff89ff16c8c3", "sha256": "825900f421194d63af0dcc851bc72dfb258d2de8fdc5a6ea81cb90307c61596f" }, "downloads": -1, "filename": "pyramid_scss-0.4.tar.gz", "has_sig": false, "md5_digest": "7ce4108518315bbd520fff89ff16c8c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4665, "upload_time": "2014-04-18T02:23:00", "url": "https://files.pythonhosted.org/packages/f2/88/3d97ce8fb01e3fe59ddd8593de863528586c9c6a63613710cd16460c409b/pyramid_scss-0.4.tar.gz" } ] }