'Writes templateparams to a given template'

def render(self, templateparams, *args):

    path = ''
    for p in args:
        path = os.path.join(path, p)
    self.response.out.write(template.render(path, templateparams))
