add comments and pep8, add div element to html files
This commit is contained in:
@@ -4,7 +4,9 @@ import cherrypy
|
||||
class wellcome(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
''' Method for open specific html file
|
||||
and change it'''
|
||||
with open('templates/index.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='Titulni_strana', _heading='Vítejte!')
|
||||
return result
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user