Sha256: 5eb906621e22f6e6fcc1c3317de10eb8ee36cad3486de323b164b6b6510fa810

Contents?: true

Size: 274 Bytes

Versions: 6

Compression:

Stored size: 274 Bytes

Contents

<% @foo = capture do %>
  Capture Text Without Args
<% end %>
<%= @foo %>

<% @struct = Struct.new( :value ) -%>
<% @obj = @struct.new( "capture text from yielded object" )%>

<% @foo2 = capture( @obj ) do |obj| %>
  BEFORE
  <%= obj.value %>
  AFTER
<% end %>

<%= @foo2 %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
merb-0.4.1 spec/fixtures/views/template_views/interface_capture_erubis.html.erb
merb-0.4.2 spec/fixtures/views/template_views/interface_capture_erubis.html.erb
merb-0.5.0 spec/fixtures/views/template_views/interface_capture_erubis.html.erb
merb-0.5.1 spec/fixtures/views/template_views/interface_capture_erubis.html.erb
merb-0.5.2 spec/fixtures/views/template_views/interface_capture_erubis.html.erb
merb-0.5.3 spec/fixtures/views/template_views/interface_capture_erubis.html.erb