Skip to content

Commit

Permalink
Implemented render function
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezjdaniel committed Jan 30, 2013
1 parent f00b32e commit 8786255
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion handlers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

import webapp2

import os

class Base(webapp2.RequestHandler):
pass
def render(self, name, *args, **kwargs):
template = jinja_environment.get_template(os.path.join("templates",
('%s.html' % name) ))
self.response.out.write(template.render(*args, **kwargs))

0 comments on commit 8786255

Please sign in to comment.