add templates and modules + connect to load pages using url (/section/)..TODO: comments and PEP8
This commit is contained in:
10
main/modules/index.py
Normal file
10
main/modules/index.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import cherrypy
|
||||
|
||||
|
||||
class wellcome(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
with open('templates/index.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='Titulni_strana', _heading='Vítejte!')
|
||||
return result
|
||||
Reference in New Issue
Block a user