examples added

This commit is contained in:
2019-06-17 11:45:33 +02:00
parent 3f604d8a46
commit 3531d493d8
3 changed files with 78 additions and 0 deletions

12
examples/modules/index.py Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/python3
import cherrypy
import config
static_dir = '/templates/' # Needs to have trailing and leading slash '/'
class wellcome(object):
'''Base Index constructor and expose function'''
@cherrypy.expose
def index(self):
result = '<h1>Wellcome</h1>'
return result