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