middleman/middleman-core/lib/vendored-middleman-deps/padrino-helpers-0.11.2/test/fixtures/markup_app/views/content_for.erb
2013-06-04 09:56:33 -07:00

14 lines
466 B
Plaintext

<% 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 %>