Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using the Eco template engine with Rails

Eco is an embedded Coffeescript templating language. It resembles ERB. Is there a way I can use this as a server-side templating language in a Rails app?

The ultimate goal is to use some partials written in Eco on both the client and the server.

like image 362
user94154 Avatar asked Dec 02 '22 03:12

user94154


1 Answers

I just noticed that Rails 3.1 will support this. Basically Sam Stephenson just published ruby-eco and hooked up sprockets to use it. So this means using .eco in your view templates will now just work.

Link to the commit

like image 185
MetaSkills Avatar answered Dec 04 '22 04:12

MetaSkills