Sha256: a43efa118f10e965297c20097eb3cbf630855e723fd385cb4ead3b55c1c1fcf2

Contents?: true

Size: 345 Bytes

Versions: 67

Compression:

Stored size: 345 Bytes

Contents

<% content_for :demo do %>
  <h1>This is content yielded from a content_for</h1>
<% end %>
  
<div class='demo'><%= yield_content :demo %></p>
  
<% content_for :demo2 do |fname, lname| %>
  <h1>This is content yielded with name <%= fname + " " + lname %></h1>
<% end %>
  
<div class='demo2'><%= yield_content :demo2, "Johnny", "Smith" %></div>

Version data entries

67 entries across 67 versions & 4 rubygems

Version Path
any_view-0.2.3 ./test/fixtures/content_for.erb
any_view-0.2.2 ./test/fixtures/content_for.erb
any_view-0.2.0 /Users/dneighman/Projects/any_view/test/fixtures/content_for.erb
padrino-helpers-0.8.1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.8.0 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.9 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.8 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.7 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.38 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.37 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.36 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.6 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.35 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.34 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.5 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.4 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.3 test/fixtures/markup_app/views/content_for.erb
darkhelmet-sinatra_more-0.3.36 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.2 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.7.1 test/fixtures/markup_app/views/content_for.erb