class Alchemy::Generators::MenusGenerator
Public Instance Methods
create_partials()
click to toggle source
# File lib/generators/alchemy/menus/menus_generator.rb, line 11 def create_partials menus = Alchemy::Node.available_menu_names return unless menus menus.each do |menu| conditional_template "wrapper.html.#{template_engine}", "app/views/alchemy/menus/#{menu}/_wrapper.html.#{template_engine}" conditional_template "node.html.#{template_engine}", "app/views/alchemy/menus/#{menu}/_node.html.#{template_engine}" end end