Add support for passing a custom options object to the render methods, which allow setting custom locals for the template. This is useful if you write your own custom templates and want to use other modules like async or lodash, or even your own helpers in the templates.