Sha256: 10f5d78432deb2f8cfe3db4009cf34bd487932ade8b28e66fa84e406a7119e66

Contents?: true

Size: 341 Bytes

Versions: 28

Compression:

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

28 entries across 28 versions & 3 rubygems

Version Path
padrino-fields-0.3.3 test/fixtures/datamapper/views/content_for.erb
middleman-2.0.7 lib/middleman/vendor/padrino-helpers-0.10.0/test/fixtures/markup_app/views/content_for.erb
middleman-2.0.6 lib/middleman/vendor/padrino-helpers-0.10.0/test/fixtures/markup_app/views/content_for.erb
middleman-2.0.5 lib/middleman/vendor/padrino-helpers-0.10.0/test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.10.1 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.10.0 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.29 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.28 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.27 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.26 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.24 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.25 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.23 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.22 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.21 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.20 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.19 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.18 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.17 test/fixtures/markup_app/views/content_for.erb
padrino-helpers-0.9.16 test/fixtures/markup_app/views/content_for.erb