Created
December 9, 2015 14:53
-
-
Save StefanWallin/ae2f9b9ea122da58fc98 to your computer and use it in GitHub Desktop.
Recursive cells — is it possible?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<%= @options[:contents].each do |item| %> | |
<li> | |
<%= item["name"] %> | |
<% if item.include?("sub_sections") %> | |
<%= render_cell( | |
:menu, :show, { | |
contents: item["sub_sections"], | |
level: (@options[:level] + 1) | |
} | |
) %> | |
<% end %> | |
</li> | |
<% end %> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment