Sha256: 41ebdd5c5eedd321addd589ee87827ad021de8020c0a35cba47ead2823cf6dd2

Contents?: true

Size: 494 Bytes

Versions: 45

Compression:

Stored size: 494 Bytes

Contents

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

- content_for :demo3 do
  %p{:class => "duplication"} One
- content_for :demo3, :flush => true do
  %p{:class => "duplication"} Two

.demo3= yield_content :demo3

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.haml
padrino-helpers-0.16.0.pre2 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.15.3 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.15.2 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.15.1 test/fixtures/markup_app/views/content_for.haml
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.haml
padrino-helpers-0.15.0 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.4 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.3 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.12.9 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.2 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.13.3.4 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.1.1 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.1 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.0.2 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.0.1 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.0 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.0.rc2 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.14.0.rc1 test/fixtures/markup_app/views/content_for.haml
padrino-helpers-0.13.3.3 test/fixtures/markup_app/views/content_for.haml