Sha256: 40fe679ca4919a8bf7d2fc09dc55edb40d6e84defdca651c5157f2b91b27cb79

Contents?: true

Size: 485 Bytes

Versions: 32

Compression:

Stored size: 485 Bytes

Contents

<% styles ||= []
   styles.push(*section_styles(section))
   section_prefixes ||= nil
   section_name = section_template_name(section) %>
<%= content_tag(:section, class: styles, id: section_id(section)) do %>
  <% if section_prefixes && lookup_context.exists?(section_name, [*section_prefixes], true) %>
    <%= render([*section_prefixes, section_name].join('/'), section: section) %>
  <% else %>
    <%= render("sections/#{section_name}", section: section) %>
  <% end %>
<% end %>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
wcc-contentful-app-1.0.8 app/views/components/_section.html.erb
wcc-contentful-app-1.0.7 app/views/components/_section.html.erb
wcc-contentful-app-1.0.6 app/views/components/_section.html.erb
wcc-contentful-app-1.0.5 app/views/components/_section.html.erb
wcc-contentful-app-1.0.4 app/views/components/_section.html.erb
wcc-contentful-app-1.0.3 app/views/components/_section.html.erb
wcc-contentful-app-1.0.2 app/views/components/_section.html.erb
wcc-contentful-app-1.0.1 app/views/components/_section.html.erb
wcc-contentful-app-1.0.0 app/views/components/_section.html.erb
wcc-contentful-app-1.0.0.pre.rc3 app/views/components/_section.html.erb
wcc-contentful-app-1.0.0.pre.rc2 app/views/components/_section.html.erb
wcc-contentful-app-1.0.0.pre.rc1 app/views/components/_section.html.erb