add templates and modules + connect to load pages using url (/section/)..TODO: comments and PEP8

This commit is contained in:
2019-06-18 15:57:13 +02:00
parent 27ba065956
commit 9c9c5dd437
18 changed files with 108 additions and 0 deletions

10
main/modules/insert.py Normal file
View File

@@ -0,0 +1,10 @@
import cherrypy
class insert(object):
@cherrypy.expose
def index(self):
with open('templates/insert.html') as fh:
index_f = fh.read()
result = index_f.format(_title='insert_strana', _heading='insert')
return result