railsware / smt_rails

Shared mustache templates for rails 3.
http://blog.railsware.com/2012/04/12/shared-mustache-templates-for-rails-3/
MIT License
109 stars 21 forks source link

Rails 3.0? #11

Closed ljharb closed 10 years ago

ljharb commented 10 years ago

Is there any way to make this gem work with Rails 3.0? I'd like to use it to get Sprockets all set up prior to upgrading to 3.1.

le0pard commented 10 years ago

Setup sprockets gem like in rails 3.1 and it will work. You should have middleware "sprockets.environment" (https://github.com/railsware/smt_rails/blob/master/lib/smt_rails/engine.rb#L7)

ljharb commented 10 years ago

The gemspec requires rails 3.1.0 - won't that need to be loosened?

le0pard commented 10 years ago

Just create you fork, change requires in gemspec and try to use your fork.