middleman/middleman-core/fixtures/feature-params-app/config.rb

17 lines
326 B
Ruby
Raw Normal View History

set :layout, false
2014-01-01 03:21:30 +01:00
class ExtensionA < ::Middleman::Extension
helpers do
def get_option(key)
extensions[:extension_a].options[key]
end
end
2014-01-01 03:21:30 +01:00
option :hello, '', ''
option :hola, '', ''
end
Middleman::Extensions.register :extension_a, ExtensionA
2014-01-01 03:21:30 +01:00
activate :extension_a, :hello => "world", :hola => "mundo"