Lately, I’ve had a desire to use CoffeeScript to create a one page application, utilizing Backbone.js. So I decided to take this opportunity to learn Node.js and use the Express framework for the application server. While doing this I realized that I was going to have a lot of CoffeeScript code that would be used on the client side. For this, I wanted a Ruby on Rails 3.1.x style asset pipeline. I found a library called connect-assets, which was inspired by Rails 3.1.x asset pipeline and the sprockets gem. Also, I needed to pick a client side template engine. There are many options to choose from, and I decided to use Eco templates.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Ultimately, this code and the processing of multiple file extensions should be handled in snockets. This may be something that I will contribute to the project in the future.