Module: Broadway::Themeable

Included in:
Post
Defined in:
lib/broadway/mixins/themeable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#templateObject

Returns the value of attribute template.



3
4
5
# File 'lib/broadway/mixins/themeable.rb', line 3

def template
  @template
end

Instance Method Details

#template_extensionsObject



5
6
7
# File 'lib/broadway/mixins/themeable.rb', line 5

def template_extensions
  %w(html html.haml haml.html haml erb erb.html html.erb)
end

#themeObject



9
10
11
# File 'lib/broadway/mixins/themeable.rb', line 9

def theme
  File.join(site.setting(:theme_path), theme)
end