Metadata-Version: 2.1
Name: django_jinja_helpers
Version: 0.2.3
Summary: Helpers for using django-jinja
Home-page: https://github.com/enricobarzetti/django_jinja_helpers
License: MIT
Author: Enrico Barzetti
Author-email: enricobarzetti@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: django-crispy-forms (>=1.14.0,<2.0.0)
Requires-Dist: django-jinja (>=2.8.0,<3.0.0)
Requires-Dist: django-webpack-loader (>=0.7.0,<0.8.0)
Description-Content-Type: text/x-rst

Django Jinja Helpers
====================

Helpers for using django-jinja (https://github.com/niwinz/django-jinja) with

- django-crispy-forms
- django-webpack-loader

Installation
------------

To get the latest stable release from PyPi

.. code-block:: bash

    pip install django_jinja_helpers

Install the app

.. code-block:: python

    INSTALLED_APPS = (
        ...,
        'django_jinja_helpers',
    )

Usage
-----

Call ``render_bundle()`` in your template

.. code-block:: html

    <!DOCTYPE html>
    <html>
      <head>
        {{ render_bundle('styles', 'css') }}
      </head>

      <body>
      </body>
    </html>

Call ``crispy()`` in your template

.. code-block:: html

    <div class="container">
      {{ crispy(form) }}
    </div>

