Metadata-Version: 1.0
Name: django-pipeline-eco
Version: 0.1.3
Summary: django-pipeline compiler for eco templates
Home-page: https://github.com/vshjxyz/django-pipeline-eco
Author: Luca Del Bianco
Author-email: vshjxyz@gmail.com
License: UNKNOWN
Description: ['Django Pipeline Eco\n', '===================\n', '\n', 'django-pipeline-eco is a compiler for `django-pipeline <https://github.com/cyberdelia/django-pipeline>`_.\n', '\n', 'This compiler will produce a JS using the widely used JST model.\n', '\n', 'It basically compiles and appends to the window.JST JSON array the template that you request (through django-pipeline) using for example `Backbone.js <https://github.com/documentcloud/backbone>`_ or `Spine.js <https://github.com/maccman/spine>`_\n', '.\n', '\n', 'Installation\n', '~~~~~~~~~~~~\n', '.. code-block:: sh\n', '\n', '    pip install django-pipeline-eco\n', '\n', 'Add these lines in your django `settings.py`:\n', '\n', '.. code-block:: python\n', '\n', '    PIPELINE_JS = {\n', "        'application': {\n", "            'source_filenames': (\n", '            \t# Your other JS files...\n', "                'path/to/your/templates/*.eco',\n", '            ),\n', "            'output_filename': 'js/application.js'\n", '        }\n', '    }\n', '\n', '    PIPELINE_COMPILERS = (\n', "        'pipeline_eco.compiler.EcoCompiler',\n", '    )\n', '\n', 'Usage\n', '~~~~~\n', 'If the paths are set correctly (try to play a bit depending on your static files situation), the eco will be compiled in a JS file and included automatically by pipeline.\n', '\n', 'You will just need then to call the rendered template using\n', '\n', '.. code-block:: python\n', '\n', '\tExample.Views.Test = Backbone.View.extend\n', '\t\ttemplate: "templates/example",\n', '\n', '\t\trender: (done) ->\n', '\t\t\t@el.innerHTML = JST[@template]\n', '\n', 'Deeply inspired by\n', '~~~~~~~~~~~~~~~~~~\n', '* `django-spine <https://github.com/ikeikeikeike/django-spine>`_ (base eco compiler) \n', '* `django-pipeline-compass <https://github.com/vbabiy/django-pipeline-compass>`_ (pipeline compiler model)']
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Utilities
