def render_to(self, path, template, **data):
html = self.render(template, **data)<EOL>with open(path, '<STR_LIT:w>') as f:<EOL><INDENT>f.write(html.encode(charset))<EOL><DEDENT>
Render data with template and then write to path