Hi Alex and all,
I would like to do some work on erector and rails to make erector a super-duper out-of-the box solution as ruby-only templating for rails.
In order to bring erector development up to speed with the newest rails, I fixed a number of issues, see my pull request here
https://github.com/pivotal/erector/pull/36I believe these are the minimal changes to resolve all dependency conflicts and make all tests run and pass with ruby 1.9.3 and rails 3.2.8
legacy rails 2 and rails 3.1 integrations also tested and all dandy
ruby 1.9.3 needs version conflict fix for wrong >= 0.6.2, see
https://github.com/sconover/wrong/issues/23outstanding minor issues:
- Jeweler and rubyforge: Releasing gems to Rubyforge is deprecated. See details at
http://wiki.github.com/technicalpickles/jeweler/migrating-from-releasing-gems-to-rubyforge- DEPRECATION WARNING: Passing a template handler in the template name is deprecated. You can simply remove the handler name or pass render :handlers => [:erb] instead
Following on from this, I am planning to add some more fixes to make erector rails3-sellable :)
- add tests and fixes for proper rails templating
- layouts (fix content_for to allow example in the doc work)
- add tests for widget embedding and mixed template handlers
- global config
- extract config for needs/variables propagation
- config generator for rails initializer
- add option erector binary to control base widget class to allow application-wide subclassing of Erector::Widget
- add flexibility of template name to widget class mapping to rails template handler
- config option to customize template2class
- config paths to allow for scaffold widget libraries outside app/views
- support some existing view parameter handling solutions interact smoothly with needs and allow for rails default render to work with needs
- proffer
- decent_exposure
- ...
Let me know if you guys endorse this and/or have ideas
best
Vik