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-03-29 22:29:42 +01:00
|
|
|
Middleman::Extensions.register :extension_a, ExtensionA
|
2014-01-01 03:21:30 +01:00
|
|
|
|
|
|
|
activate :extension_a, :hello => "world", :hola => "mundo"
|