Metadata-Version: 1.1
Name: django-ember-index
Version: 0.5.0
Summary: A Django app to serve Ember index files.
Home-page: http://bobisjan.com/django-ember-index
Author: Jan Bobisud
Author-email: me@bobisjan.com
License: MIT License
Description: Django Ember Index
        ==================
        
        |Build Status| |Code Climate| |Coverage Status| |Requirements Status|
        
        A Django app to serve `Ember`_ index files deployed with
        `ember-cli-deploy`_.
        
        Installation
        ------------
        
        1. Install application using ``$ pip install django-ember-index``.
        
        2. Add ``ember_index`` to your ``INSTALLED_APPS`` setting like this:
        
          .. code-block:: python
        
            INSTALLED_APPS = (
                ...
                'ember_index',
            )
        
        Usage
        -----
        
        1. Register Ember application(s) at ``urls.py`` with `redis`_\ ’s
           adapter:
        
          .. code-block:: python
        
            from ember_index import index, RedisAdapter
        
            adapter = RedisAdapter(host='localhost')
        
            urlpatterns = [
                index(r'^other/', 'other-app', adapter),
                index(r'^', 'my-app', adapter),
            ]
        
          The provided ``regex`` is used to set router’s `rootURL`_ by `replacing`_ pregenerated `baseURL`_ environment configuration at index file.
        
          All adapter’s keyword arguments will be passed into the `StrictRedis`_ object on initialization.
        
        2. Access application(s) at:
        
          -  ``/`` with current revision of ``my-app``,
          -  ``/r/ed54cda/`` with specific revision of ``my-app``,
          -  ``/other/`` with current revision of ``other-app``,
          -  ``/other/r/ed54cda/`` with specific revision of ``other-app``.
        
        License
        -------
        
        Django Ember Index is available under the MIT license. See the LICENSE
        file for more info.
        
        .. _Ember: http://emberjs.com
        .. _ember-cli-deploy: https://github.com/ember-cli/ember-cli-deploy
        .. _redis: http://redis.io
        .. _rootURL: http://emberjs.com/api/classes/Ember.Router.html#property_rootURL
        .. _replacing: https://github.com/bobisjan/django-ember-index/blob/master/ember_index/utils.py#L1
        .. _baseURL: https://github.com/ember-cli/ember-cli/blob/18d377b264859548f41aba6c3ea2015b90978068/blueprints/app/files/config/environment.js#L7
        .. _StrictRedis: https://redis-py.readthedocs.org/en/latest/#redis.StrictRedis
        
        .. |Build Status| image:: https://travis-ci.org/bobisjan/django-ember-index.svg?branch=master
           :target: https://travis-ci.org/bobisjan/django-ember-index
        .. |Code Climate| image:: https://codeclimate.com/github/bobisjan/django-ember-index/badges/gpa.svg
           :target: https://codeclimate.com/github/bobisjan/django-ember-index
        .. |Coverage Status| image:: https://coveralls.io/repos/bobisjan/django-ember-index/badge.svg?branch=master
           :target: https://coveralls.io/r/bobisjan/django-ember-index
        .. |Requirements Status| image:: https://requires.io/github/bobisjan/django-ember-index/requirements.svg?branch=master
           :target: https://requires.io/github/bobisjan/django-ember-index/requirements/?branch=master
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.4
Classifier: Framework :: Django :: 1.7
Classifier: Framework :: Django :: 1.8
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Text Processing
Classifier: Topic :: Text Processing :: Markup
Classifier: Topic :: Text Processing :: Markup :: HTML
