Created
May 3, 2014 20:41
-
-
Save jonschlinkert/a21708f4842f6a922e1b to your computer and use it in GitHub Desktop.
This is all you need to create middleware for assemble.
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
module.exports = function (assemble) { | |
var middleware = function(params, next) { | |
// do stuff | |
next(); | |
}; | |
// When do you want the plugin to run? | |
middleware.event = 'page:after:render'; | |
return { | |
'assemble-middleware-foo': middleware | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment