Skip to content
This repository
tree: 46c4e9c16b
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 16 lines (13 sloc) 0.5 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Eco lets you embed [CoffeeScript](http://coffeescript.org/) logic in
your markup. It's like EJS and ERB, but with CoffeeScript inside the
`<%% ... %>`. Use it from [Node.js](http://nodejs.org/) to render your
application's views.

Here's an Eco template:

    <%% if @projects.length: %>
      <%% for project in @projects: %>
        <a href="<%%= project.url %>"><%%= project.name %></a>
        <p><%%= project.description %></p>
      <%% end %>
    <%% else: %>
      No projects
    <%% end %>
Something went wrong with that request. Please try again.