Metadata-Version: 1.1
Name: jinja2-python-version
Version: 1.1.1
Summary: A Jinja2 extenstion that adds python version to templates.
Home-page: https://github.com/jmfederico/jinja2-python-version
Author: Federico Jaramillo Martínez
Author-email: federicojaramillom@gmail.com
License: BSD License
Description: =====================
        Jinja2 Python Version
        =====================
        
        A Jinja extenstion that creates a global variable with Python version
        information for your Jinja2 templates:
        
        Usage
        -----
        .. code-block:: console
        
            $ pip install jinja2-python-version
        
        .. code-block:: python
        
            from jinja2 import Environment
        
            env = Environment(extensions=['jinja2_python_version.PythonVersionExtension'])
        
            # 3.6
            template = env.from_string("{{ python_version }}")
        
            # 3.6
            template = env.from_string("{{ python_version.minor }}")
        
            # 3
            template = env.from_string("{{ python_version.major }}")
        
            # 3.6.4
            template = env.from_string("{{ python_version.micro }}")
        
            template.render()
        
Keywords: jinja2 extension python versions
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
