Added ability to specify a template in render.