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