mustache and handlebars template handling in Rails 3.x and Rails 4.x