Skip to content

whiteclover/Medoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medoly

Medoly is a MVC Web Framework

#!/usr/bin/env python

from medoly import kanon
import tornado.ioloop


@kanon.menu("/")
class Index(object):

    def get(self):
        self.write("hello world!")


@kanon.error_page(404)
def on_not_fonud(req_handler, code, **kw):
    req_handler.write("Page not found!")

if __name__ == "__main__":
    app = kanon.chant()
    app.listen(8888)
    tornado.ioloop.IOLoop.current().start()

Note

More examples see examples directory.

About

Medoly is a Web Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published