Sha256: e99f86335135fdf2412af7b14fc1f7424b773aa87ebee691a858383d6a6e534a
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
module AbstractInterface module ViewHelper # # Basic # def b @b ||= AbstractInterface::ViewBuilder.new self end alias_method :builder, :b def themed_resource resource "/#{AbstractInterface.plugin_name.should_not_be!(:blank)}/themes/#{current_theme.name}/#{resource}" end 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
crystal-ext-0.0.1 | lib/abstract_interface/view_helper.rb |
rails-ext-0.3.29 | lib/abstract_interface/view_helper.rb |