Sha256: 7c4554d8deb99b6c7035133d899f7f362715f2fff88fa756140407fbea01a41c

Contents?: true

Size: 783 Bytes

Versions: 17

Compression:

Stored size: 783 Bytes

Contents

class LayoutsLayoutsDataset < Dataset::Base
  
  def load
    create_record :layout, :parent, 
      :name         => 'parent',
      :content_type => 'haml',
      :content      => <<-CONTENT
!!! 5
%html
  %head
    %title Title
  :plain
    <r:body class="site">
      <r:content_for_layout />
    </r:body>
CONTENT

    create_record :layout, :child,
      :name       => 'child',
      :content    => <<-CONTENT
<r:inside_layout name='parent'>
  <h1><r:layout/></h1>
</r:inside_layout>
CONTENT

    create_record :layout, :haml, 
      :name         => 'haml',
      :content_type => 'haml',
      :content      => <<-CONTENT
%r:inside_layout{:name=>"parent"}
  %h1{:id=>"<r:layout />",:'data-layout'=>"<r:find url='find'><r:layout/></r:find>"}
    %r:layout
CONTENT
  end
  
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
trusty-layouts-extension-3.1.1 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-3.1.0 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-3.0.0 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-2.0.4 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-2.0.3 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-2.0.2 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-2.0.1 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-2.0.0.pre.beta spec/datasets/layouts_layouts.rb
trusty-layouts-extension-1.1.0 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-1.0.4 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-1.0.3 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-1.0.2 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-1.0.1 spec/datasets/layouts_layouts.rb
trusty-layouts-extension-1.0.0 spec/datasets/layouts_layouts.rb
radiant-layouts-extension-1.1.3 spec/datasets/layouts_layouts.rb
radiant-layouts-extension-1.1.2 spec/datasets/layouts_layouts.rb
radiant-layouts-extension-1.1.1 spec/datasets/layouts_layouts.rb