Sha256: 26c1a40c245b6aee72e590b16355b5970b2b7fa475077ab08a61d6ac3f1329b6
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 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 = ::Middleman::EMPTY_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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-cli-5.0.0.rc.1 | lib/middleman-cli/templates/extension/lib/lib/extension.rb |