Metadata-Version: 2.5
Name: citry-django
Version: 0.1.0
Summary: Citry and Django's template engines, composed: real Django tags and filters inside Citry components, and Citry components inside Django templates.
Project-URL: Repository, https://github.com/joeyjurjens/citry-django
Project-URL: Issues, https://github.com/joeyjurjens/citry-django/issues
Author-email: Joey Jurjens <joeyjurjens@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: citry,components,django,templates
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 5.2
Classifier: Framework :: Django :: 6.0
Classifier: Framework :: Django :: 6.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: citry>=0.4.3
Requires-Dist: django>=5.2
Provides-Extra: compressor
Requires-Dist: citry-django-compressor; extra == 'compressor'
Provides-Extra: django-components
Requires-Dist: citry-django-djc; extra == 'django-components'
Description-Content-Type: text/markdown

# citry-django

Citry and Django's template engines, composed.

```python
from citry import Citry
from citry_django import CitryDjangoExtension

app = Citry(extensions=[CitryDjangoExtension()])
```

```python
# settings.py
TEMPLATES = [{"BACKEND": "citry_django.backend.CitryTemplates", "APP_DIRS": True, ...}]
CITRY_APP = "myproject.app:app"
```

Any `{% tag %}` you can `{% load %}` in Django then works inside a Citry
component, and Citry components work in your existing Django templates. Neither
syntax changes, and the adapter names no tag: each engine's own parser decides
what belongs to it.

See the [repository README](https://github.com/joeyjurjens/citry-django) for the
full picture, the limits, and how it works.

## Optional extras

```bash
pip install citry-django[compressor]
```

Routes each component's CSS and JS through [django-compressor], so assets are
preprocessed (SCSS, Less, ...) and minified. See `citry-django-compressor`.

[django-compressor]: https://django-compressor.readthedocs.io/
