Sha256: 35e14a3d6ac14b527f3481d19a60ccfacf8cbb737e09bc38e6c0189b17462abb

Contents?: true

Size: 444 Bytes

Versions: 128

Compression:

Stored size: 444 Bytes

Contents

- cache(<%= @element_name -%>) do
  = element_view_for(<%= @element_name -%>) do |el|
  <%- @contents.each do |content| -%>
    <%- if @contents.length > 1 -%>
    .<%= content["name"] %>
      = el.render :<%= content["name"] %>
    <%- else -%>
    = el.render :<%= content["name"] %>
    <%- end -%>
  <%- end -%>
  <%- if @element['nestable_elements'].present? -%>
    = render <%= @element_name -%>.nested_elements.available
  <%- end -%>

Version data entries

128 entries across 64 versions & 1 rubygems

Version Path
alchemy_cms-4.4.3 lib/rails/generators/alchemy/elements/templates/view.html.slim
alchemy_cms-4.4.3 lib/rails/generators/alchemy/elements/templates/view.html.haml
alchemy_cms-4.4.2 lib/rails/generators/alchemy/elements/templates/view.html.slim
alchemy_cms-4.4.2 lib/rails/generators/alchemy/elements/templates/view.html.haml
alchemy_cms-4.4.1 lib/rails/generators/alchemy/elements/templates/view.html.slim
alchemy_cms-4.4.1 lib/rails/generators/alchemy/elements/templates/view.html.haml
alchemy_cms-4.4.0 lib/rails/generators/alchemy/elements/templates/view.html.slim
alchemy_cms-4.4.0 lib/rails/generators/alchemy/elements/templates/view.html.haml