Using template.ri for partials extension

Instead of return a custom render function, use a custom template.ri
function. This allows partials to have their own requirements bound to
them.