Metadata-Version: 1.1
Name: django-placeholdit
Version: 1.0.2
Summary: A fully featured drop-in replacement of placehold.it for Django
Home-page: https://github.com/stevelacey/django-placeholdit
Author: Steve Lacey
Author-email: steve@stevelacey.net
License: Copyright (c) 2015 Steve Lacey <steve@stevelacey.net>

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: Django Placehold.it
        ===================
        
        A fully featured drop-in replacement of `placehold.it`_ for Django
        
        +--------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
        | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/160.gif           | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/custom-dimensions.gif | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/custom-text.gif |
        +--------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
        | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/custom-colors.gif | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/automatically.gif     | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/formats.jpg     |
        |                                                                                                              +------------------------------------------------------------------------------------------------------------------+                                                                                                            |
        |                                                                                                              | .. image:: https://raw.githubusercontent.com/stevelacey/django-placeholdit/master/examples/scaled.gif            |                                                                                                            |
        +--------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
        
        Features
        --------
        
        - Everything `placehold.it`_ does
        - Identical URL structure
        - Improved font rendition and vertical text alignment
        
        Installation
        ------------
        
        You can pip install the app from PyPi (recommended):
        
        ::
        
            $ pip install django-placeholdit
        
        or GitHub:
        
        ::
        
            $ pip install git+git://github.com/stevelacey/django-placeholdit.git#egg=DjangoPlaceholdit
        
        
        Add django_placeholdit to your INSTALLED_APPS in settings.py:
        
        ::
        
            INSTALLED_APPS = (
                # ...
                'django_placeholdit',
            )
        
        Add the routes into your urls.py, feel free to customise the prefix or namespace, no trailing slash:
        
        ::
        
            urlpatterns = patterns(
                # ...
                url(r'^placeholders', include('django_placeholdit.urls', namespace='placeholdit')),
            )
        
        Configuration
        -------------
        
        The following options can be configured in your settings.py:
        
        ``PLACEHOLDIT_CACHE_SECONDS`` # Number of seconds to cache placeholders. Defaults to `86400 * 7` (a week)
        
        Usage
        -----
        
        In templates:
        
        ::
        
            <img src="{% url 'placeholdit:placeholder' width=160 %}">
            <img src="{% url 'placeholdit:placeholder' width=240 height=160 text='Custom dimensions' %}">
            <img src="{% url 'placeholdit:placeholder' width=160 text='Custom text!' %}">
            <img src="{% url 'placeholdit:placeholder' width=160 background='F77A00' color='fff' text='Custom colors!' %}">
            <img src="{% url 'placeholdit:placeholder' width=240 height=80 background='fbd206' color='fff' text='Automatically' %}">
            <img src="{% url 'placeholdit:placeholder' width=240 height=80 background='fbd206' color='fff' text='scaled!' %}">
            <img src="{% url 'placeholdit:placeholder' width=160 background='93C663' color='3F740E' text='gif/jpeg/png' format='jpg' %}">
        
        Resulting in:
        
        ::
        
            <img src="http://example.com/placeholders/160">
            <img src="http://example.com/placeholders/240x160&text=Custom%20dimensions">
            <img src="http://example.com/placeholders/160&text=Custom%20text%21">
            <img src="http://example.com/placeholders/160/F77A00/fff&text=Custom%20colors%21">
            <img src="http://example.com/placeholders/240x80/fbd206/fff&text=Automatically">
            <img src="http://example.com/placeholders/240x80/fbd206/fff&text=scaled%21">
            <img src="http://example.com/placeholders/160.jpg/93C663/3F740E&text=gif/jpeg/png">
        
        Contributing
        ------------
        
        Feel free to `fork django-placeholdit <https://github.com/stevelacey/django-placeholdit>`_
        on GitHub! I'd love to see your pull requests.
        
        .. _placehold.it: http://placehold.it
        
Keywords: django placeholder placehold.it
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Framework :: Django
