is there any reason this can't be `renderPartials(res, partials, callback)` instead of being a middleware plus a method on the `res` ?

The only dependencies on express is `res.render` it could even be `renderPartials(res, partials, { render: function () {} }, callback)` where it defaults to using `res.render()`