Sha256: c572becc52d8caa4583985669f4c03cbb67c9a8c5a5aab97eadd9da5b6c7edd3

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

%h1
  = @page.title

%h5 Line
%p
  = @page.content(:line)

%hr

%h5 Content
= @page.content(:text).try(:html_safe)

%hr

%h5 Photo
%p
  = image_tag @page.content(:photo).try(:file_url)

%hr

%h5 Photo collection
%p
  - @page.content(:photo_collection).photos.each do |photo|
    %span
      = image_tag photo.file_url

%hr

%h5 Structure
- if @page.content(:structure).try(:structure_items)
  %ul
    - @page.content(:structure).structure_items.each do |item|
      %li
        %h6 Title
        %p
          = item.content(:title)
        %h6 Description
        = item.content(:description).try(:html_safe)

%h5 Color
= @page.content(:color)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spina-0.7.3 test/dummy/app/views/default/pages/demo.html.haml
spina-0.7.2 test/dummy/app/views/default/pages/demo.html.haml