module Drapes::Common

Public Instance Methods

current_theme() click to toggle source
# File lib/drapes/common.rb, line 3
def current_theme
  Drapes::theme
end
drapes_themes() click to toggle source
# File lib/drapes/common.rb, line 7
def drapes_themes
  themes = []
  paths = Pathname.new('app/assets/themes/').children.select { |c| c.directory? }
  paths.each do |path|
    themes << YAML.load_file(path.join('theme.yml')).symbolize_keys
  end
  themes
end