|
Revision 104, 286 bytes
(checked in by tec, 22 months ago)
|
- lib/markaby/rails.rb: give helpers access to assigns (ticket:51); new namespace
- lib/markaby/template.rb: allow different builder classes
- test/rails_test.rb: test that helpers have access to assigns
- test/rails/test_helper.rb: a helper to test with
- test/rails/test_preamble.rb: make sure the helpers can be loaded
- test/rails/markaby/index.mab: use the helper
- init.rb: new namespace
|
| Line | |
|---|
| 1 | $:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'lib')) |
|---|
| 2 | |
|---|
| 3 | require 'markaby' |
|---|
| 4 | require 'markaby/rails' |
|---|
| 5 | |
|---|
| 6 | ActionView::Base::register_template_handler 'mab', Markaby::Rails::ActionViewTemplateHandler |
|---|
| 7 | |
|---|
| 8 | ActionController::Base.send :include, Markaby::Rails::ActionControllerHelpers |
|---|