Sha256: d7d1fb1ba3240a07a7885a42b31f394891d59d590abc0f289e6aafdad390e24d

Contents?: true

Size: 204 Bytes

Versions: 13

Compression:

Stored size: 204 Bytes

Contents

class Views::Layouts::WidgetAsLayout < Erector::Widget
  def content
    content_for(:top) if content_for?(:top)
    text @before || "BEFORE"
    content_for(:layout)
    text @after || "AFTER"
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
erector-rails4-0.2.0 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.1.3 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.1.2 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-0.10.0 spec/rails_root/app/views/layouts/widget_as_layout.rb
erector-rails4-0.1.1 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.1.0 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.7 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.6 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.5 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.4 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.3 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.2 spec/dummy/app/views/layouts/widget_as_layout.rb
erector-rails4-0.0.1 spec/dummy/app/views/layouts/widget_as_layout.rb