Class: StyleGuideAPI::MiddlemanExtension
- Inherits:
-
Middleman::Extension
- Object
- Middleman::Extension
- StyleGuideAPI::MiddlemanExtension
- Defined in:
- lib/styleguide-api/middleman.rb
Instance Method Summary collapse
-
#initialize(app, options_hash = {}, &block) ⇒ MiddlemanExtension
constructor
A new instance of MiddlemanExtension.
Constructor Details
#initialize(app, options_hash = {}, &block) ⇒ MiddlemanExtension
Returns a new instance of MiddlemanExtension.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/styleguide-api/middleman.rb', line 6 def initialize(app, = {}, &block) super app.configure :development do StyleGuideAPI.live = true end if .has_key?(:templates) StyleGuideAPI.add_templates [:templates] end if .has_key?(:load) StyleGuideAPI.load [:load] end if .has_key?(:theme) StyleGuideAPI.theme = [:theme] end end |