AlchemyCMS/alchemy_cms

View on GitHub
lib/generators/alchemy/menus/templates/wrapper.html.erb

Summary

Maintainability
Test Coverage
<%% cache [menu, @page, Alchemy::Current.preview_page?] do %>
  <ul class="nav">
    <%%= render partial: menu.to_partial_path,
      collection: menu.children.includes(:page, :children),
      locals: { options: options },
      as: 'node' %>
  </ul>
<%% end %>