Closed iox closed 6 years ago
Caution note: I think I found a bug with partials Ajax updates. Most work, but I have one case where they are failing. If you are using this branch, please check it. I'll try to fix the problem and update the branch ASAP.
Forget my last caution note: the problem with partials was unrelated to this branch :).
This is a proposal for improving the development load times with Hobo 2.0 and Rails 3.2, focused on what happens after saving a file and reloading a page. This is what I have done:
hobo.fast_dev_mode
. It disables automatic routes and dryml (forms/cards/pages) generation every time you save a file. If you change the models or the automatic actions you need to restart the app.hobo.cached_tags
. You can add a list of tags that you want to cache. This means you don't have to parse again lots of files on every reload, only the ones that have changed. From my tests you can add almost everything here, as Hobo still checks the last modified time before using the cache.If you are interested in testing this, please:
gem "hobo", :git => "git://github.com/Hobo/hobo", :branch => 'fast_hobo_dev_reload'
bundle
config/initializers/dryml_taglibs.rb
As you can see in the comments, I've also added some extra optimizations you can try.