Exemplo n.º 1
0
 def get(self):
     # Config 設定をよみこみ
     #self.response.write(self.app.config['data']['id'])
     base = JINJA_ENVIRONMENT.get_template('Top/index.html')
     # View に変数をわたす
     contents = {'name':'John'}
     self.response.write(base.render(contents))
Exemplo n.º 2
0
 def get(self):
     # Config 設定をよみこみ
     #self.response.write(self.app.config['data']['id'])
     base = JINJA_ENVIRONMENT.get_template('Top/index.html')
     # View に変数をわたす
     contents = {'name': 'John'}
     self.response.write(base.render(contents))
Exemplo n.º 3
0
 def get(self):
     base = JINJA_ENVIRONMENT.get_template('Top/index.html')
     self.response.write(base.render())
Exemplo n.º 4
0
 def get(self):
     base = JINJA_ENVIRONMENT.get_template('Top/index.html')
     self.response.write(base.render())