skip to navigation
skip to content

Not Logged In

django-pipeline-eco 0.1.2

django-pipeline compiler for eco templates

Latest Version: 0.1.5

Django Pipeline Eco

django-pipeline-eco is a compiler for `django-pipeline <>`_.

This compiler will produce a JS using the widely used JST model.

It basically compiles and appends to the window.JST JSON array the template that you request (through django-pipeline) using for example `Backbone.js <>`_ or `Spine.js <>`_

.. code-block:: sh

    pip install django-pipeline-eco

Add these lines in your django ``:

.. code-block:: python

        'application': {
            'source_filenames': (
                # Your other JS files...
            'output_filename': 'js/application.js'


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.

You will just need then to call the rendered template using

.. code-block:: python

        Example.Views.Test = Backbone.View.extend
                template: "templates/example",

                render: (done) ->
                        @el.innerHTML = JST[@template]

Deeply inspired by
* `django-spine <>`_ (base eco compiler)
* `django-pipeline-compass <>`_ (pipeline compiler model)
File Type Py Version Uploaded on Size
django-pipeline-eco-0.1.2.tar.gz (md5) Source 2012-09-30 2KB
  • Downloads (All Versions):
  • 8 downloads in the last day
  • 126 downloads in the last week
  • 498 downloads in the last month