19 lines
497 B
Python
19 lines
497 B
Python
import jinja2
|
|
import webapp2
|
|
import os
|
|
|
|
JINJA_ENVIRONMENT = jinja2.Environment(
|
|
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
|
|
extensions=['jinja2.ext.autoescape'],
|
|
autoescape=True)
|
|
|
|
class LandingPage(webapp2.RequestHandler):
|
|
def get(self):
|
|
template_values = {}
|
|
template = JINJA_ENVIRONMENT.get_template('index.html')
|
|
self.response.write(template.render(template_values))
|
|
|
|
app = webapp2.WSGIApplication([
|
|
('/', LandingPage),
|
|
], debug=False)
|