middleman/middleman-core/lib/vendored-middleman-deps/padrino-helpers-0.10.7/test/fixtures/markup_app/views/content_for.slim

12 lines
332 B
Plaintext
Raw Normal View History

2013-05-19 22:53:37 +02:00
- content_for :demo do
h1 This is content yielded from a content_for
.demo== yield_content :demo
- content_for :demo2 do |fname, lname|
h1 This is content yielded with name #{fname + " " + lname}
.demo2== yield_content :demo2, "Johnny", "Smith"
.demo_has_content== content_for?(:demo)
.fake_has_content== content_for?(:fake)