morepath.tween – Tweens

Tweens are lightweight middleware using webob.

A tween is a function that takes a morepath.Request and returns a morepath.Response. A tween factory is a function that given an application instance and tween constructs another tween that wraps it.

Used by morepath.App.tween_factory().

See also morepath.directive.TweenRegistry