Files
cherrypy_sqlite_restapi/main/modules/insert.py

12 lines
288 B
Python

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