Files
cherrypy_sqlite_restapi/main/modules/create.py

12 lines
288 B
Python

import cherrypy
class create(object):
@cherrypy.expose
def index(self):
''' Method for open specific html file
and change it'''
with open('templates/create.html') as fh:
index_f = fh.read()
result = index_f.format(_title='create_strana', _heading='create')
return result