{ "info": { "author": "Nick Lourie", "author_email": "developer@nicholaslourie.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-urlactive-lite\n=====================\n\nA small template tag library for django, that makes highlighting active\nlinks easy.\n\nvisit the\n`github `__.\n\nPurpose\n=======\n\nThis library is extremely light weight, and I probably won't add any new\nfeatures. There are many larger libraries out there that already provide\nmany more features for navigation, so I'd suggeset that people use those\ninstead.\n\nThis library is meant partially for people who just want one simple tag\nto add an \"active\" class to a navigation link, but mostly just as a\nsimple example of how to create a template tag in django.\n\nInstallation\n============\n\nfrom the command line:\n\n::\n\n pip install django-urlactive-lite\n\nIn your ``settings.py`` file, add ``urlactive`` to ``INSTALLED_APPS``\n\n.. code:: python\n\n INSTALLED_APPS = (\n ...\n 'urlactive',\n ...\n )\n\nAnd add ``django.core.context_processors.request`` to your\n``TEMPLATE_CONTEXT_PROCESSORS`` setting in ``settings.py``. Remember to\ninclude the other default template context processors:\n\n.. code:: python\n\n TEMPLATE_CONTEXT_PROCESSORS = (\n \"django.contrib.auth.context_processors.auth\",\n \"django.core.context_processors.debug\",\n \"django.core.context_processors.i18n\",\n \"django.core.context_processors.media\",\n \"django.core.context_processors.static\",\n \"django.core.context_processors.tz\",\n \"django.contrib.messages.context_processors.messages\",\n ...\n \"django.core.context_processors.request\",\n ...\n )\n\nUsage\n=====\n\n``{% url_active ... %}``'\n-------------------------\n\narguments\n~~~~~~~~~\n\nThe ``{% url_active ... %}`` template tag takes one argument, a url, and\nprints ``\"active\"`` if the url passed as an argument is the same as the\nurl from which the page is rendered.\n\nexample\n~~~~~~~\n\nDon't forget to load the template tag library.\n\n.. code:: html\n\n {% load urlactive %}\n ...\n ...\n ...\n \n\nContributing\n============\n\nThere are already many great projects for django around template tags\nfor navigation, so I'm not looking to extend this project. Of course,\nfeel free to fork it and do whatever you want with the code.", "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/nalourie/django-urlactive-lite", "keywords": "django navigation active templatetags", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "django-urlactive-lite", "package_url": "https://pypi.org/project/django-urlactive-lite/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-urlactive-lite/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nalourie/django-urlactive-lite" }, "release_url": "https://pypi.org/project/django-urlactive-lite/0.1/", "requires_dist": null, "requires_python": null, "summary": "An example django template tag library for adding an \"active\" class to navigation links.", "version": "0.1" }, "last_serial": 1470776, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "55db3208a1737d7c31e96ad7b23814b5", "sha256": "34c659c950e18177c1c8624cbb900d916e2bd6f19e87c479ec46399727d368de" }, "downloads": -1, "filename": "django-urlactive-lite-0.1.zip", "has_sig": false, "md5_digest": "55db3208a1737d7c31e96ad7b23814b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11385, "upload_time": "2015-03-20T22:05:49", "url": "https://files.pythonhosted.org/packages/b9/64/aa95f1cced4d4a6f226fa22aee6df2873f8886bdfec7e56785e05ab1693b/django-urlactive-lite-0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "55db3208a1737d7c31e96ad7b23814b5", "sha256": "34c659c950e18177c1c8624cbb900d916e2bd6f19e87c479ec46399727d368de" }, "downloads": -1, "filename": "django-urlactive-lite-0.1.zip", "has_sig": false, "md5_digest": "55db3208a1737d7c31e96ad7b23814b5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11385, "upload_time": "2015-03-20T22:05:49", "url": "https://files.pythonhosted.org/packages/b9/64/aa95f1cced4d4a6f226fa22aee6df2873f8886bdfec7e56785e05ab1693b/django-urlactive-lite-0.1.zip" } ] }