示例#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))
示例#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))
示例#3
0
 def get(self):
     base = JINJA_ENVIRONMENT.get_template('Top/index.html')
     self.response.write(base.render())
示例#4
0
 def get(self):
     base = JINJA_ENVIRONMENT.get_template('Top/index.html')
     self.response.write(base.render())