{ "info": { "author": "Andrew Kubera", "author_email": "andrewkubera@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Environment :: Web Environment", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP" ], "description": "==============\nGrowler - Jade\n==============\n\nA Growler render engine for processing jade_ template files.\nThis uses the pyjade_ package with the mako base - though this *should* be\nstrictly an implemenation detail and not a concern of the user.\n\n\nInstallation\n------------\n\nTo install the latest stable (published) version, use the pypi repository\n\n.. code:: sh\n\n pip install growler-jade\n\nTo use the (semi-stable) development branch, you can use pip to directly\naccess the source repository\n\n.. code:: sh\n\n pip install git+https://github.com/pyGrowler/growler-jade.git@dev\n\nOtherwise, you can install locally via\n\n.. code:: sh\n\n python setup.py install\n\n\nUsage\n-----\n\nThe only class the user has to worry about is JadeRenderer, which can be found in either\n``growler_jade.JadeRenderer`` or the namespace ``growler_ext.jade_renderer.JadeRenderer``.\nThe latter method is used by the growler extension auto-importer ``growler.ext``, making\nimporting multiple packages very clean.\n\nA JadeRenderer is created with a path (which must exist) which contains the template files\nto render.\nThere are currently no configuration options available, but this is likely to change.\nThis object must be added to the application via the app.use() method.\nIn all server middleware following this object, a the 'render' method will be available\non the response object, allowing you to render any filename found in the given renderer's\npath: ``res.render('foo')`` renders ``foo.jade`` found in the path.\n\nExample\n~~~~~~~\n\nHere is a simple script which serves a single file, ``path/to/views/index.jade`` upon\nrequest to the root page:\n\n.. code:: python\n\n from growler import App\n\n from growler.ext import JadeRenderer # do NOT import growler.ext.JadeRenderer directly\n\n app = App(\"Jade Example\")\n\n app.use(JadeRenderer(\"path/to/views\"))\n\n @app.get(\"/\")\n def index_page(req, res):\n if hasattr(req, 'user'):\n data = {'username': req.user.name}\n else:\n data = {'username': 'Anonymous'}\n\n # renders path/to/views/index.jade with values given data\n res.render(\"index\", data)\n\n app.create_server_and_run_forever(host='localhost', port=9000)\n\n\n\nContributing\n------------\n\nContributions are welcome that follow the `Growler Contribution Guidelines`_.\n\n\nLicense\n-------\n\nNo license has been chosen.\n\n\n\n.. _jade: http://jade-lang.com/\n.. _pyjade: https://pypi.python.org/pypi/pyjade\n.. _Growler Contribution Guidelines:\n https://github.com/pyGrowler/Growler/blob/master/CONTRIBUTING.rst\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/pygrowler/growler-jade/archive/v0.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pyGrowler/growler-jade", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "growler-jade", "package_url": "https://pypi.org/project/growler-jade/", "platform": "all", "project_url": "https://pypi.org/project/growler-jade/", "project_urls": { "Download": "https://github.com/pygrowler/growler-jade/archive/v0.0.1.tar.gz", "Homepage": "https://github.com/pyGrowler/growler-jade" }, "release_url": "https://pypi.org/project/growler-jade/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "An extension providing a jade renderer for growler applications", "version": "0.0.1" }, "last_serial": 2194695, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "26b0add4bfe8b6de2884bac08a6d57da", "sha256": "4436a8db38d8a4bb97f9d2ab78ba08a2e2aedebb3d7f1ea70d96150b518cff99" }, "downloads": -1, "filename": "growler_jade-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "26b0add4bfe8b6de2884bac08a6d57da", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5226, "upload_time": "2016-06-29T21:31:18", "url": "https://files.pythonhosted.org/packages/5e/a7/22109acf81616276bae72406cad2fb163f6317fd7e891c11541dfac620f4/growler_jade-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30ce1067b260ac1d2abc893ca7c93c19", "sha256": "0bc9f836326c499270ad71392b8f2ae23ee5606eb279122f72322cb5b2c3462e" }, "downloads": -1, "filename": "growler-jade-0.0.1.tar.gz", "has_sig": false, "md5_digest": "30ce1067b260ac1d2abc893ca7c93c19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4401, "upload_time": "2016-06-29T21:31:08", "url": "https://files.pythonhosted.org/packages/e0/0c/0aeca401160aee40d98e49bbca8bd2a8d30e7c8d85521fadbcef294a58d2/growler-jade-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "26b0add4bfe8b6de2884bac08a6d57da", "sha256": "4436a8db38d8a4bb97f9d2ab78ba08a2e2aedebb3d7f1ea70d96150b518cff99" }, "downloads": -1, "filename": "growler_jade-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "26b0add4bfe8b6de2884bac08a6d57da", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 5226, "upload_time": "2016-06-29T21:31:18", "url": "https://files.pythonhosted.org/packages/5e/a7/22109acf81616276bae72406cad2fb163f6317fd7e891c11541dfac620f4/growler_jade-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "30ce1067b260ac1d2abc893ca7c93c19", "sha256": "0bc9f836326c499270ad71392b8f2ae23ee5606eb279122f72322cb5b2c3462e" }, "downloads": -1, "filename": "growler-jade-0.0.1.tar.gz", "has_sig": false, "md5_digest": "30ce1067b260ac1d2abc893ca7c93c19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4401, "upload_time": "2016-06-29T21:31:08", "url": "https://files.pythonhosted.org/packages/e0/0c/0aeca401160aee40d98e49bbca8bd2a8d30e7c8d85521fadbcef294a58d2/growler-jade-0.0.1.tar.gz" } ] }