17 lines
290 B
Ruby
17 lines
290 B
Ruby
set :layout, false
|
|
|
|
class ExtensionA < ::Middleman::Extension
|
|
helpers do
|
|
def get_option(key)
|
|
extensions[:extension_a].options[key]
|
|
end
|
|
end
|
|
|
|
option :hello, '', ''
|
|
option :hola, '', ''
|
|
end
|
|
|
|
ExtensionA.register
|
|
|
|
activate :extension_a, :hello => "world", :hola => "mundo"
|