Added the ability to pass a block function into the partial helper