forked from wmgraham1/NewDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactpage.py
More file actions
21 lines (18 loc) · 736 Bytes
/
Copy pathcontactpage.py
File metadata and controls
21 lines (18 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import jinja2
import os
import webapp2
from datetime import datetime
from google.appengine.ext import db
TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), 'templates')
jinja_environment = \
jinja2.Environment(loader=jinja2.FileSystemLoader(TEMPLATE_DIR))
#jinja_environment = jinja2.Environment(autoescape=True,
# loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 'templates')))
html = 'This is the more new contact us content.'
class ViewContactPage(webapp2.RequestHandler):
def get(self):
template_values = {
'content1': html
}
template = jinja_environment.get_template('stdpage_block.html')
self.response.out.write(template.render(template_values))