projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enable auto-escaping templates
[cascardo/ipsilon.git]
/
ipsilon
/
ipsilon
diff --git
a/ipsilon/ipsilon
b/ipsilon/ipsilon
index
a0cc158
..
bec13af
100755
(executable)
--- a/
ipsilon/ipsilon
+++ b/
ipsilon/ipsilon
@@
-60,7
+60,9
@@
else:
template_loaders.append(FileSystemLoader(
os.path.join(cherrypy.config['base.dir'],
default_template_dir)))
template_loaders.append(FileSystemLoader(
os.path.join(cherrypy.config['base.dir'],
default_template_dir)))
-template_env = Environment(loader=ChoiceLoader(template_loaders))
+template_env = Environment(loader=ChoiceLoader(template_loaders),
+ autoescape=True,
+ extensions=['jinja2.ext.autoescape'])
if __name__ == "__main__":
conf = {'/': {'tools.staticdir.root': os.getcwd()},
if __name__ == "__main__":
conf = {'/': {'tools.staticdir.root': os.getcwd()},