We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1375e commit 47d95afCopy full SHA for 47d95af
keg/web.py
@@ -200,10 +200,13 @@ def process_auto_assign(self):
200
for key in self.auto_assign:
201
self.assign(key, getattr(self, key))
202
203
+ def calc_class_fname(self):
204
+ return case_cw2us(self.__class__.__name__)
205
+
206
def calc_template_name(self):
207
if self.template_name is not None:
208
return self.template_name
- template_path = '{}.html'.format(case_cw2us(self.__class__.__name__))
209
+ template_path = '{}.html'.format(self.calc_class_fname())
210
blueprint_name = request.blueprint
211
if blueprint_name:
212
template_path = '{}/{}'.format(blueprint_name, template_path)
0 commit comments