module AbstractInterface module ControllerHelper def current_theme @current_theme ||= AbstractInterface::Theme.new end # TODO1 # def build_layout layout = nil # # Configuring # current_theme.layout = layout # # # Rendering # current_theme.layout_definition['slots'].each do |slot_name, slots| # slots = Array(slots) # slots.each do |partial| # content_for slot_name do # render :partial => partial # end # end # end # end end end