Metadata-Version: 1.1
Name: jinja2-maps
Version: 0.2.0
Summary: Maps filters for Jinja2
Home-page: https://github.com/bfontaine/jinja2_maps
Author: Baptiste Fontaine
Author-email: b@ptistefontaine.fr
License: Copyright © 2016 – Baptiste Fontaine

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: ===========
        jinja2_maps
        ===========
        
        ``jinja2_maps`` is a set of filters to display locations in Jinja2 templates.
        
        .. image:: https://travis-ci.org/bfontaine/jinja2_maps.svg?branch=master
            :target: https://travis-ci.org/bfontaine/jinja2_maps
        
        Install
        -------
        
        .. code-block::
        
            pip install jinja2_maps
        
        Support
        -------
        
        =============  ===  ===
        Service        URL  Map
        =============  ===  ===
        OpenStreetMap  Yes  Yes
        Google Maps    Yes  -
        Apple Maps     Yes  -
        Bing Maps      Yes  -
        Mappy          Yes  -
        =============  ===  ===
        
        Both Python 2.x and 3.x are supported.
        
        Usage
        -----
        
        All filters take a location as a dict with ``latitude`` and ``longitude`` keys.
        You can also pass an object with these attributes.
        
        Before using any template you need to add the filters to your Jinja2
        environment:
        
        .. code-block:: python
        
          from jinja2_maps import activate_filters
          activate_filters(your_env)
        
        If using Flask you can do the following:
        
        .. code-block:: python
        
          from jinja2_maps import activate_filters
          activate_filters(app.jinja_env)
        
        URLs
        ~~~~
        
        .. code-block:: html+jinja
        
          <a href="{{ your_location | osm_url }}">Check on OpenStreetMap</a>
          <a href="{{ your_location | gmaps_url }}">Check on Google Maps</a>
          <a href="{{ your_location | apple_maps_url }}">Check in Maps</a>
          <a href="{{ your_location | bing_maps_url }}">Check on Bing Maps</a>
          <a href="{{ your_location | mappy_url }}">Check on Mappy</a>
        
        URLs also support giving the zoom level (default is ``16``):
        
        .. code-block:: html+jinja
        
          <a href="{{ your_location | osm_url(zoom=12) }}">Check on OpenStreetMap</a>
        
        Maps
        ~~~~
        
        .. code-block:: html+jinja
        
          {{ your_location | osm_map(width=500, height=400) }}
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Text Processing :: Markup :: HTML
