Metadata-Version: 1.0
Name: Djinja
Version: 0.5.2
Summary: Easy Jinja2 templates integration in Django (including admin), with HAML syntax support.
Home-page: http://github.com/syrusakbary/djinja
Author: Syrus Akbary Nieto
Author-email: dimension.net@gmail.com
License: BSD
Description: ======
        Djinja
        ======
        
        Djinja tries to **integrate Jinja2 in Django**. The aim is to replace
        completely the Django's template system, **including administration**.
        
        Also, **Djinja can render HAML pages**, and is as just **simple** as put the
        **.haml extension** to your template. *Requires HamlPy*
        
        Currently, the following templating modules have been written and are working:
        
        - Django administration
        - Django Debug Toolbar
        
        Furthermore, is planned to implement one Django management command (**NOT CURRENTLY**):
        
        - `compiletemplates`: Compile the Jinja2 templates for completely fast views in your website.
        
        
        If you have ideas please let us know.
        
        Installation
        ============
        
        #. Add the `djinja` directory to your Python path.
        
        #. Add the following template loader (**AT TOP OF TEMPLATE_LOADERS**) to your project's `settings.py` file:
        
        ``'djinja.template.loaders.Loader',``
        
        Tying into template loaders allows Djinja to manage automatically **ALL**
        the templates with Jinja2 (including Django templates)
        
        Note: If you don't install djinja.contrib.admin when you try to access
        to the Django administration you will get an error, this is caused because
        the Django administration templates are not adapted for Jinja2.
        
        #. That's all! ;)
        
        
        **IMPORTANT**: You have to adapt your website templates to Jinja2 or you
        will get an error when rendering.
        
        Configuration
        =============
        
        No configuration for now, but is expected in next releases.
        
        
        HAML
        ====
        
        If you have installed HamlPy (https://github.com/jessemiller/HamlPy),
        you can render any HAML-page (\*.haml) without any additional configuration.
        
        **HAML templates can also include,extend,etc HTML templates and viceversa.**
        
        Administration
        ==============
        
        For install the Django administration Jinja2 templating just add
        
        ``'djinja.contrib.admin',``
        
        before 'django.contrib.admin' in your INSTALLED_APPS in `settings.py`.
        
        Example configuration::
        
        INSTALLED_APPS = (
        ...
        'djinja.contrib.admin',
        'django.contrib.admin',
        ...
        )
        
        
        Benchmarking
        ------------
        
        Running tests::
        
        ab -n100 http://localhost/admin/
        
        In Django
        
        Requests per second:    67.93 [#/sec] (mean)
        Time per request:       14.721 [ms] (mean)
        
        With Jinja2 (Djinja)
        
        Requests per second:    202.16 [#/sec] (mean)
        Time per request:       4.947 [ms] (mean)
        
        
        **3x performance using Jinja2 instead of Django templating in administration**
        
        Django Debug Toolbar
        ====================
        
        For install the Django Debug Toolbar Jinja2 templating just  add
        
        ``'djinja.contrib.debug_toolbar',``
        
        before 'debug_toolbar' in your INSTALLED_APPS in `settings.py`.
        
        Example configuration::
        
        INSTALLED_APPS = (
        ...
        'djinja.contrib.debug_toolbar',
        'debug_toolbar',
        ...
        )
        
        TODOs and BUGS
        ==============
        See: http://github.com/syrusakbary/djinja/issues
Platform: UNKNOWN
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
