fixed issue 1109, thanks Niphlod
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.1.1 (2012-10-20 10:08:54) dev
|
||||
Version 2.1.1 (2012-10-20 10:11:05) dev
|
||||
|
||||
@@ -453,7 +453,10 @@ def compile_views(folder):
|
||||
|
||||
path = pjoin(folder, 'views')
|
||||
for file in listdir(path, '^[\w/\-]+(\.\w+)+$'):
|
||||
data = parse_template(file, path)
|
||||
try:
|
||||
data = parse_template(file, path)
|
||||
except Exception, e:
|
||||
raise Exception("%s in %s" % (e, file))
|
||||
filename = ('views/%s.py' % file).replace('/', '_').replace('\\', '_')
|
||||
filename = pjoin(folder, 'compiled', filename)
|
||||
write_file(filename, data)
|
||||
|
||||
Reference in New Issue
Block a user