Sha256: 2703317e2905e6c9f1f0fe140e72a737af000d6a8cfe3012fbc23d465bfbfb08

Contents?: true

Size: 347 Bytes

Versions: 16

Compression:

Stored size: 347 Bytes

Contents

<% content_for :demo do %>
  <h1>This is content yielded from a content_for</h1>
<% end %>
  
<div class='demo'><%= yield_content :demo %></div>
  
<% 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

16 entries across 16 versions & 2 rubygems

Version Path
sinatra_more-0.3.43 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.42 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.41 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.6 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.5 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.4 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.3 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.2 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.40 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.0 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.8.5 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.8.4 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.8.3 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.8.2 test/fixtures/markup_app/views/content_for.erb
sinatra_more-0.3.39 test/fixtures/markup_app/views/content_for.erb