a few examples
This commit is contained in:
@@ -4,7 +4,10 @@ import cherrypy
|
||||
class HelloWorld(object):
|
||||
@cherrypy.expose
|
||||
def index(self):
|
||||
return "Hello World!"
|
||||
with open('./templates/index.html') as fh:
|
||||
index_f = fh.read()
|
||||
result = index_f.format(_title='Nazev_stranky', _nadpis='Cokoliv!')
|
||||
return result
|
||||
|
||||
|
||||
cherrypy.quickstart(HelloWorld())
|
||||
|
||||
Reference in New Issue
Block a user