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