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