Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 72be9d196d
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (18 sloc) 891 Bytes

Eco Template Precompiler

This package will precompile Eco templates and adds them to the design document as CommonJS modules that you can use in your applications.

Eco Templating

Eco templates run coffeescript directly in your templates. Check out Sam Stephenson's repository for more information:

To use

Add eco to your dependencies in kanso.json.

"dependencies": {
    "eco": "~1.1.0-kanso.1"

Add an eco field to kanso.json with a list of folders to search for eco templates.

"eco": {
    "templates": ["templates"]

The Eco precompiler compiles the eco template into a CommonJS module that you can require and run to render:

var template = require('templates/mytemplate');
var some_object = { name: "Pete", greeting: "Hello" };
var rendered_html = template(some_object);
Jump to Line
Something went wrong with that request. Please try again.