{ "info": { "author": "Michael van Tellingen", "author_email": "michaelvantellingen@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 7 - Inactive" ], "description": "Cofingo is a combination of Coffin (http://github.com/coffin/coffin) and Jingo (http://github.com/jbalogh/jingo). It allows the usage of Jinja2 templates while keeping the tags and filters from Django (e.g. the URL tag)\r\n\r\nLike Jingo the way to add custom filters, tags (extensions), and tests is by creating a helpers.py file in your app. \r\n\r\nGetting started\r\n===============\r\n\r\nThe easiest way to install Cofingo is by using **pip**::\r\n\r\n pip install django-cofingo\r\n\r\nThe development version can be found at::\r\n\r\n http://github.com/mvantellingen/django-cofingo\r\n\r\n\r\nConfiguration\r\n=============\r\n\r\nAdd `django_cofingo.Loader` to your settings::\r\n\r\n TEMPLATE_LOADERS = (\r\n 'django_cofingo.Loader',\r\n 'django.template.loaders.filesystem.Loader',\r\n 'django.template.loaders.app_directories.Loader',\r\n )\r\n\r\nTemplates are then rendered by Jinja2 whichever method is used (It works for class based views, TemplateResponse etc).\r\n\r\nIf you want to prevent that the templates of a specific app are rendered with Jinja2 then you can excluded them in your settings file::\r\n\r\n COFINGO_EXCLUDED_APPS = ['admin', 'debug_toolbar']\r\n\r\n(Note that these two apps are added by default)\r\n\r\n\r\nCreating custom filters and extensions\r\n======================================\r\n\r\nCreate a `helpers` module in your django app and add the following::\r\n\r\n from django_cofingo.library import Library\r\n\r\n library = Library()\r\n\r\n\r\nIf you want to add a filter add the following::\r\n\r\n @library.filter\r\n def my_custom_filter(value):\r\n return value + '-filtered'\r\n\r\nAdding an extension can be done as follow::\r\n\r\n from django_cofingo.library import Library\r\n from django_assets.env import get_env\r\n from webassets.ext.jinja2 import AssetsExtension\r\n\r\n library = Library()\r\n library.attr('assets_environment', get_env())\r\n library.extension(AssetsExtension)\r\n\r\nYou can also add other modules with a library to Cofingo by specifying them in\r\nyour settings.py file::\r\n\r\n COFINGO_HELPERS = [\r\n 'myproject.helpers'\r\n ]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/mvantellingen/django-cofingo", "keywords": "", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-cofingo", "package_url": "https://pypi.org/project/django-cofingo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-cofingo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/mvantellingen/django-cofingo" }, "release_url": "https://pypi.org/project/django-cofingo/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "Jinja2 template renderer for Django", "version": "0.2.2" }, "last_serial": 1827198, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2b6a94880df229de1e217e06b59226fb", "sha256": "2b775aa1e2e8e8e5f250306e8c4fb0dd6ab0f080172dfe3d824d918cdf148382" }, "downloads": -1, "filename": "django-cofingo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "2b6a94880df229de1e217e06b59226fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15484, "upload_time": "2012-01-29T23:02:58", "url": "https://files.pythonhosted.org/packages/fe/64/03c7fdd9a449a38d6acac5ab7590121b1a98ed727da2bc74b2ef35f4f0b9/django-cofingo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c2e3c8c5eb90d2ef834e57ac8681f8b1", "sha256": "cf615e67e7a9aecbc991627594581eb191b9f9cdc0ce47f64fc0fb98326c0e05" }, "downloads": -1, "filename": "django-cofingo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c2e3c8c5eb90d2ef834e57ac8681f8b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15474, "upload_time": "2012-01-29T23:05:41", "url": "https://files.pythonhosted.org/packages/f1/48/471a9aa17b685a2df6caddcd2cf3818dabf6441c2bb6b6e68dc0e47e9aa8/django-cofingo-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "67e4542104c2859c3ce7512e435ccc5f", "sha256": "fd9e2a6d8f1aa94c4bcca65c844d36794e173ba3d6c18640564dac6c6c5aac47" }, "downloads": -1, "filename": "django-cofingo-0.1.2.tar.gz", "has_sig": false, "md5_digest": "67e4542104c2859c3ce7512e435ccc5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15772, "upload_time": "2012-01-31T11:17:16", "url": "https://files.pythonhosted.org/packages/a3/bd/60ca092b59fe5e08b7413e8a43b7b7a7ec28a4e8e4ce6288eb9e8eb4da16/django-cofingo-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "61f3a06238854978e2f7f2fb72f33d00", "sha256": "01147025f0f552ca8a4dd48d884bad59b5df8ad8a56f5e205f4f60e3ba553958" }, "downloads": -1, "filename": "django-cofingo-0.1.3.tar.gz", "has_sig": false, "md5_digest": "61f3a06238854978e2f7f2fb72f33d00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15382, "upload_time": "2012-02-06T13:38:43", "url": "https://files.pythonhosted.org/packages/f8/fd/f87e94eca6e94bdcaf36850e38e2fb57450293e201b51e662b25473078aa/django-cofingo-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "fe6739b0603b871128cebb39086ee0cf", "sha256": "c5f35156fb5a8eb9e14e0da10b575d24f4f3d5d8a3ee7b47397901646c181e16" }, "downloads": -1, "filename": "django-cofingo-0.1.4.tar.gz", "has_sig": false, "md5_digest": "fe6739b0603b871128cebb39086ee0cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15381, "upload_time": "2012-02-07T15:52:34", "url": "https://files.pythonhosted.org/packages/49/94/63ae24b89ca1777b697ad2e04dafefaf49d6ee6bbc2bd8cc62a11b91fd0a/django-cofingo-0.1.4.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "bedb4a37ac913ac24211f10c6662f221", "sha256": "0f1807fff6112c10b22ee6d01ce672ba81e5cea8d26a4462c85aa1195c3fa445" }, "downloads": -1, "filename": "django-cofingo-0.2.tar.gz", "has_sig": false, "md5_digest": "bedb4a37ac913ac24211f10c6662f221", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15597, "upload_time": "2012-02-13T12:32:59", "url": "https://files.pythonhosted.org/packages/19/54/a85a8ad33d2c3a4295697f4afaf5050f981f5cbd47c1265f4b951f78353f/django-cofingo-0.2.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "ea4a485f2a712f2a47ac71f921f9b11e", "sha256": "5da048abf9260de99e28951920bb57c0e052f275f4e0123a087d3c58b7087a73" }, "downloads": -1, "filename": "django-cofingo-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ea4a485f2a712f2a47ac71f921f9b11e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17249, "upload_time": "2012-06-26T16:34:55", "url": "https://files.pythonhosted.org/packages/6f/7c/baba4668dedd14725f4e3c81641bebc152e51d62b2d91e155e069820532a/django-cofingo-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea4a485f2a712f2a47ac71f921f9b11e", "sha256": "5da048abf9260de99e28951920bb57c0e052f275f4e0123a087d3c58b7087a73" }, "downloads": -1, "filename": "django-cofingo-0.2.2.tar.gz", "has_sig": false, "md5_digest": "ea4a485f2a712f2a47ac71f921f9b11e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17249, "upload_time": "2012-06-26T16:34:55", "url": "https://files.pythonhosted.org/packages/6f/7c/baba4668dedd14725f4e3c81641bebc152e51d62b2d91e155e069820532a/django-cofingo-0.2.2.tar.gz" } ] }