Changeset 1078
- Timestamp:
- 12/10/07 15:13:26 (1 year ago)
- Files:
-
- trunk/lib/merb/mixins/erubis_capture.rb (modified) (1 diff)
- trunk/lib/merb/template/haml.rb (modified) (1 diff)
- trunk/spec/merb/render_spec.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/merb/mixins/erubis_capture.rb
r436 r1078 7 7 # Provides direct acccess to the buffer for this view context 8 8 def _buffer( the_binding ) 9 @_buffer ||= eval( "_buf", the_binding )9 @_buffer = eval( "_buf", the_binding ) 10 10 end 11 11 trunk/lib/merb/template/haml.rb
r1032 r1078 10 10 11 11 def _buffer( binding ) 12 @_buffer ||= eval( "_erbout", binding )12 @_buffer = eval( "_erbout", binding ) 13 13 end 14 14 trunk/spec/merb/render_spec.rb
r1014 r1078 109 109 end 110 110 111 it "should bind the concat to independent render buffers" do 112 c = new_controller 113 content = c.render :template => "template_views/interface_concat_#{@engine}", :layout => :none 114 content.should match( /Start Tester Block\s*In Tester Block\s*Finish Tester Block/m) 115 content = c.render :template => "template_views/interface_concat_#{@engine}", :layout => :none 116 content.should match( /Start Tester Block\s*In Tester Block\s*Finish Tester Block/m) 117 end 118 111 119 it "should implement a capture( &block ) method" do 112 120 c = new_controller
