{
"info": {
"author": "Agendaless Consulting",
"author_email": "repoze-dev@lists.repoze.org",
"bugtrack_url": null,
"classifiers": [
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content"
],
"description": "repoze.bfg.chameleon_genshi\n===========================\n\nBindings for Chameleon Genshi-style templating support under\n`repoze.bfg `_. See the `Chameleon website\n`_ for ``chameleon.genshi`` templating\nlanguage details.\n\nThe API for use of ``repoze.bfg.chameleon_genshi`` under BFG is\nidentical to the one used for `chameleon.zpt`` templates as documented\nin the \"Templating\" chapter of the `BFG docs\n`_.\nOnly the templating language itself (Genshi vs. ZPT) and import\nlocations (r.b.chameleon_genshi vs. r.b.chameleon_zpt) differ.\n\nAn example::\n\n from repoze.bfg.chameleon_genshi import render_template_to_response\n render_template_to_response('relative/path/to/template')\n\n``relative/path/to/template`` is relative to the package directory in\nwhich the above code is defined.\n\nSee also the ``render_template`` and ``get_template`` APIs exposed by\nthe ``repoze.bfg.chameleon_genshi`` package, which serve the same\npurpose as their brethren in ``repoze.bfg.chameleon_zpt``.\n\nGenshi templates can also be used as a BFG \"renderer\" when you use\n``repoze.bfg.chameleon_genshi``. The easiest way to allow for this is\nto use the following ZCML in your application's ``configure.zcml``::\n\n \n\nOnce your application has been set up to process this ZCML, your\napplication can point at ``chameleon.genshi`` templates that have the\n``.genshi`` file extension from within ``@bfg_view`` directives or\nZCML ``view`` directives in your application. For example::\n\n @bfg_view(renderer='templates/foo.genshi')\n def someview(request):\n ....\n\nOr::\n\n \n\nIf you'd rather not use a ``.genshi`` extension for your\n``chameleon.genshi`` templates, or if you'd rather not use ZCML to do\nregistration, you can explicitly register a renderer using the\n``add_renderer`` method of a \"configurator\". To do so, in the\n``run.py`` of your BFG application, in the function called at startup,\nwhich uses a ``repoze.bfg.configuration.Configurator`` as ``config``::\n\n from repoze.bfg.chameleon_genshi import renderer_factory\n config.add_renderer('.cgenshi', renderer_factory)\n\nOnce you've registered ``.cgenshi`` as a renderer in a view\nconfiguration, you can do the following::\n\n @bfg_view(renderer='templates/foo.cgenshi')\n def someview(request):\n ....\n\nMisc\n----\n\nBy default, Chameleon's Genshi XIncludes support cannot resolve\n``repoze.bfg`` \"resource specifications\"\n(e.g. ``my_package:foo/bar.genshi``). In order to activate an\nXIncludes class that understands repoze.bfg resource specifications,\ncall the ``repoze.bfg.chameleon_genshi.XIncludes.activate`` method\nbefore using any templates (e.g., at process startup time)::\n\n from repoze.bfg.chameleon_genshi import XIncludes\n XIncludes.activate()\n\nThis will replace the XIncludes helper class for all consumers of\nChameleon in the process.\n\n\nrepoze.bfg.chameleon_genshi\n===========================\n\n0.3 (2010-07-09)\n----------------\n\n- By default, Chameleon's Genshi XIncludes support cannot resolve\n ``repoze.bfg`` \"resource specifications\"\n (e.g. ``my_package:foo/bar.genshi``). In order to activate an\n XIncludes class that understands repoze.bfg resource specifications,\n call the ``repoze.bfg.chameleon_genshi.XIncludes.activate`` method\n before using any templates (e.g., at process startup time)::\n\n from repoze.bfg.chameleon_genshi import XIncludes\n XIncludes.activate()\n\n This will replace the XIncludes helper class for all consumers of\n Chameleon in the process.\n\n- Depend on Chameleon >= 1.2.8 (replaceable XIncludes class).\n\n0.2 (2010-06-15)\n----------------\n\n- Bring up to speed with BFG 1.3.X.\n\n0.1 (2009-05-02)\n----------------\n\n- Initial release (break code out of BFG core).",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://bfg.repoze.org",
"keywords": "bfg repoze.bfg genshi chameleon templates",
"license": "BSD-derived (http://www.repoze.org/LICENSE.txt)",
"maintainer": null,
"maintainer_email": null,
"name": "repoze.bfg.chameleon_genshi",
"package_url": "https://pypi.org/project/repoze.bfg.chameleon_genshi/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/repoze.bfg.chameleon_genshi/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "http://bfg.repoze.org"
},
"release_url": "https://pypi.org/project/repoze.bfg.chameleon_genshi/0.3/",
"requires_dist": null,
"requires_python": null,
"summary": "chameleon.genshi template bindings for the repoze.bfg web framework",
"version": "0.3"
},
"last_serial": 636196,
"releases": {
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "295229348908c4d847f392570e90d1e4",
"sha256": "505e782552fe5d8768296e7f3c77e2df00d7290615a21c9273e115cbd7bab7a8"
},
"downloads": -1,
"filename": "repoze.bfg.chameleon_genshi-0.2.tar.gz",
"has_sig": false,
"md5_digest": "295229348908c4d847f392570e90d1e4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6650,
"upload_time": "2010-06-15T16:06:08",
"url": "https://files.pythonhosted.org/packages/6b/0b/25db85a7b8f6063b612c22738cbdd9371ee08c13a4a6fdf920a1bdbb81fb/repoze.bfg.chameleon_genshi-0.2.tar.gz"
}
],
"0.3": [
{
"comment_text": "",
"digests": {
"md5": "1138a822caacaa88c2481ab38780112b",
"sha256": "e0eaf94f317e805b36af7aa65ff90756669fd09979ed2206e03930a464231c38"
},
"downloads": -1,
"filename": "repoze.bfg.chameleon_genshi-0.3.tar.gz",
"has_sig": false,
"md5_digest": "1138a822caacaa88c2481ab38780112b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8055,
"upload_time": "2010-07-09T20:16:54",
"url": "https://files.pythonhosted.org/packages/ba/72/d6fba082896a351654864221481956db83f85c54927ad908657994bb495f/repoze.bfg.chameleon_genshi-0.3.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "1138a822caacaa88c2481ab38780112b",
"sha256": "e0eaf94f317e805b36af7aa65ff90756669fd09979ed2206e03930a464231c38"
},
"downloads": -1,
"filename": "repoze.bfg.chameleon_genshi-0.3.tar.gz",
"has_sig": false,
"md5_digest": "1138a822caacaa88c2481ab38780112b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8055,
"upload_time": "2010-07-09T20:16:54",
"url": "https://files.pythonhosted.org/packages/ba/72/d6fba082896a351654864221481956db83f85c54927ad908657994bb495f/repoze.bfg.chameleon_genshi-0.3.tar.gz"
}
]
}