Sha256: df59371e47bd86383c134336c615e9c79aba48dd2b397c7fff0eeed9ffd2ca7f

Contents?: true

Size: 680 Bytes

Versions: 45

Compression:

Stored size: 680 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>

<div class="demo_has_content"><%= content_for?(:demo).to_s %>
<div class="fake_has_content"><%= content_for?(:fake).to_s %>

<% content_for :demo3 do %>
  <p class="duplication">One</p>
<% end %>
<% content_for :demo3, :flush => true do %>
  <p class="duplication">Two</p>
<% end %>

<div class="demo3"><%= yield_content :demo3 %></div>

Version data entries

45 entries across 45 versions & 4 rubygems

Version Path
padrino-helpers-0.16.0.pre3 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.16.0.pre2 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.15.3 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.15.2 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.15.1 test/fixtures/markup_app/views/content_for.erb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/padrino-helpers-0.13.3.4/test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.15.0 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.4 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.3 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.12.9 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.2 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.13.3.4 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.1.1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.0.2 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.0.1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.0 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.0.rc2 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.14.0.rc1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.13.3.3 test/fixtures/markup_app/views/content_for.erb