Created
July 7, 2016 09:22
-
-
Save amirnissim/ac57eefd3994c7386691a94f3bc4ebbe to your computer and use it in GitHub Desktop.
Sample Middleman extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyExtension < Middleman::Extension | |
def initialize(app, options_hash={}, &block) | |
puts "MyExtension: init" | |
super | |
end | |
def after_configuration | |
puts "MyExtension: after_configuration" | |
end | |
end | |
::Middleman::Extensions.register :my_extension, MyExtension |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment