2011-12-25 10:06:45 -08:00
|
|
|
set :layout, false
|
|
|
|
|
2013-12-31 18:21:30 -08:00
|
|
|
class ExtensionA < ::Middleman::Extension
|
|
|
|
helpers do
|
|
|
|
def get_option(key)
|
|
|
|
extensions[:extension_a].options[key]
|
2011-12-25 10:06:45 -08:00
|
|
|
end
|
|
|
|
end
|
2013-12-31 18:21:30 -08:00
|
|
|
|
|
|
|
option :hello, '', ''
|
|
|
|
option :hola, '', ''
|
2011-12-25 10:06:45 -08:00
|
|
|
end
|
|
|
|
|
2014-03-29 14:29:42 -07:00
|
|
|
Middleman::Extensions.register :extension_a, ExtensionA
|
2013-12-31 18:21:30 -08:00
|
|
|
|
2014-05-26 17:58:35 -07:00
|
|
|
activate :extension_a, hello: "world", hola: "mundo"
|