2011-12-25 19:06:45 +01:00
|
|
|
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]
|
2011-12-25 19:06:45 +01:00
|
|
|
end
|
|
|
|
end
|
2014-01-01 03:21:30 +01:00
|
|
|
|
|
|
|
option :hello, '', ''
|
|
|
|
option :hola, '', ''
|
2011-12-25 19:06:45 +01:00
|
|
|
end
|
|
|
|
|
2014-01-01 03:21:30 +01:00
|
|
|
ExtensionA.register
|
|
|
|
|
|
|
|
activate :extension_a, :hello => "world", :hola => "mundo"
|