Skip to main content

django-pipeline compiler for eco templates

Project description

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 .


pip install django-pipeline-eco

Add these lines in your django

    '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

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

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

Deeply inspired by

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-pipeline-eco-0.1.5.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Oct 2, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page