Sha256: 3054713b8ea498b083439cf7ea18ab9076e650f55cf6f25fde19ca5795ffbc98

Contents?: true

Size: 561 Bytes

Versions: 7

Compression:

Stored size: 561 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
abstract_interface-0.1.7 lib/abstract_interface/controller_helper.rb
abstract_interface-0.1.6 lib/abstract_interface/controller_helper.rb
abstract_interface-0.1.5 lib/abstract_interface/controller_helper.rb
abstract_interface-0.1.3 lib/abstract_interface/controller_helper.rb
abstract_interface-0.1.1 lib/abstract_interface/controller_helper.rb
abstract_interface-0.1.0 lib/abstract_interface/controller_helper.rb
abstract-interface-0.0.3 lib/abstract_interface/controller_helper.rb