Sha256: 23c54f11e2d24ecaa00fe0a631eec460bc14bfa43f50e4d680d72c5b70686250
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
# Require core library require 'middleman-core' # Extension namespace class MyExtension < ::Middleman::Extension option :my_option, 'default', 'An example option' def initialize(app, options_hash = {}, &block) # Call super to build options from the options_hash super # Require libraries only when activated # require 'necessary/library' # set up your extension # puts options.my_option end def after_configuration # Do something end # A Sitemap Manipulator # def manipulate_resource_list(resources) # end # helpers do # def a_helper # end # end end
Version data entries
3 entries across 3 versions & 1 rubygems