{"id":13502647,"url":"https://github.com/django-cms/django-classy-tags","last_synced_at":"2025-05-14T12:11:20.669Z","repository":{"id":40414470,"uuid":"816841","full_name":"django-cms/django-classy-tags","owner":"django-cms","description":"Class based template tags for django","archived":false,"fork":false,"pushed_at":"2025-03-01T17:50:27.000Z","size":335,"stargazers_count":381,"open_issues_count":2,"forks_count":46,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-05T16:01:38.523Z","etag":null,"topics":["django","python","templatetags"],"latest_commit_sha":null,"homepage":"http://django-classy-tags.rtfd.org","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/django-cms.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-08-04T11:57:16.000Z","updated_at":"2025-03-01T17:50:32.000Z","dependencies_parsed_at":"2023-02-18T11:17:50.964Z","dependency_job_id":"53abbae6-7b67-4641-acfe-996e66ca8ece","html_url":"https://github.com/django-cms/django-classy-tags","commit_stats":{"total_commits":221,"total_committers":30,"mean_commits":7.366666666666666,"dds":0.6742081447963801,"last_synced_commit":"aed728ec6bdacbf53b8d2ed8b07aeff86036f9cc"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjango-classy-tags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjango-classy-tags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjango-classy-tags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/django-cms%2Fdjango-classy-tags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/django-cms","download_url":"https://codeload.github.com/django-cms/django-classy-tags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027406,"owners_count":21035594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","python","templatetags"],"created_at":"2024-07-31T22:02:21.007Z","updated_at":"2025-04-12T17:36:37.694Z","avatar_url":"https://github.com/django-cms.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\n==================\nDjango Classy Tags\n==================\n\n|pypi| |build| |coverage|\n\nThe goal of this project is to create a new way of writing Django template tags\nwhich is fully compatible with the current Django templating infrastructure.\nThis new way should be easy, clean and require as little boilerplate code as\npossible while still staying as powerful as possible. Some features:\n\n* Class based template tags.\n* Template tag argument parser.\n* Declarative way to define arguments.\n* Supports (theoretically infinite) parse-until blocks.\n* Extensible!\n\n\n.. note:: \n\n    This project is considered 3rd party (no supervision by the `django CMS Association \u003chttps://www.django-cms.org/en/about-us/\u003e`_). Join us on `Slack                 \u003chttps://www.django-cms.org/slack/\u003e`_ for more information.\n\n\n*******************************************\nContribute to this project and win rewards\n*******************************************\n\nBecause this is a an open-source project, we welcome everyone to\n`get involved in the project \u003chttps://www.django-cms.org/en/contribute/\u003e`_ and\n`receive a reward \u003chttps://www.django-cms.org/en/bounty-program/\u003e`_ for their contribution. \nBecome part of a fantastic community and help us make django CMS the best CMS in the world.   \n\nWe'll be delighted to receive your\nfeedback in the form of issues and pull requests. Before submitting your\npull request, please review our `contribution guidelines\n\u003chttp://docs.django-cms.org/en/latest/contributing/index.html\u003e`_.\n\nWe're grateful to all contributors who have helped create and maintain this package.\nContributors are listed at the `contributors \u003chttps://github.com/django-cms/django-classy-tags/graphs/contributors\u003e`_\nsection.\n\n\nDocumentation\n=============\n\nSee ``REQUIREMENTS`` in the `setup.py \u003chttps://github.com/divio/django-classy-tags/blob/master/setup.py\u003e`_\nfile for additional dependencies:\n\n|python| |django|\n\nPlease refer to the documentation in the docs/ directory for more information or visit our\n`online documentation \u003chttps://django-classy-tags.readthedocs.io\u003e`_.\n\n\nExample\n-------\n\nThis is how a tag looks like using django-classy-tags:\n\n.. code-block:: python\n\n    from classytags.core import Options\n    from classytags.helpers import AsTag\n    from classytags.arguments import Argument\n    from django import template\n\n    register = template.Library()\n\n    class Hello(AsTag):\n        options = Options(\n            Argument('name', required=False, default='world'),\n            'as',\n            Argument('varname', required=False, resolve=False)\n        )\n\n        def get_value(self, context, name):\n            return 'hello %s' % name\n\n    register.tag(Hello)\n\nThat's your standard *hello world* example. Which can be used like this:\n\n* ``{% hello %}``: Outputs ``hello world``\n* ``{% hello \"classytags\" %}``: Outputs ``hello classytags``\n* ``{% hello as myvar %}``: Outputs nothing but stores ``hello world`` into the\n  template variable ``myvar``.\n* ``{% hello \"my friend\" as othervar %}``: Outputs nothing but stores\n  ``hello my friend`` into the template variable ``othervar``.\n\n\nRunning Tests\n-------------\n\nYou can run tests by executing::\n\n    virtualenv env\n    source env/bin/activate\n    pip install -r tests/requirements.txt\n    python setup.py test\n\n\n.. |pypi| image:: https://badge.fury.io/py/django-classy-tags.svg\n    :target: http://badge.fury.io/py/django-classy-tags\n.. |build| image:: https://travis-ci.org/divio/django-classy-tags.svg?branch=master\n    :target: https://travis-ci.org/divio/django-classy-tags\n.. |coverage| image:: https://codecov.io/gh/divio/django-classy-tags/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/divio/django-classy-tags\n\n.. |python| image:: https://img.shields.io/badge/python-3.7+-blue.svg\n    :target: https://pypi.org/project/django-classy-tags/\n.. |django| image:: https://img.shields.io/badge/django-3.2,%204.0,%204.0-blue.svg\n    :target: https://www.djangoproject.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-cms%2Fdjango-classy-tags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjango-cms%2Fdjango-classy-tags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjango-cms%2Fdjango-classy-tags/lists"}