We had a fork a little while ago that added the ability to have custom middleware for the Ripple server [1].
Basically when adding path's to the ripple server it would detect the presence of a ripple-middleware.js file and require and load it into the express app. This is an amazing feature and would give us a lot of power for integrating in some third party plugins and extensions. I am thinking we should take inspiration from this commit and create a middleware injection system for ripple. I would think we need to support global middleware (loaded for every project) as well as project based middleware (loaded from a file in the project folder, much like the pull request does now) Starting this thread to talk about high level design goals for this feature as well as debating if it is required. Usecases: - Custom route overrides - Browserifying content - Other fun stuff - Simulating Lagging of content. This would be awesome! [1] - https://github.com/DamonOehlman/incubator-ripple/commit/f35ae027c9c605983d63a2d8a741fc148f804a77
