Ayame is a component based WSGI framework. It is inspired by Apache Wicket, Apache Click and Flask.
- Python 3.8+
- Werkzeug
- secure-cookie
app.wsgi
app/
HelloWorld.html
from ayame import Ayame, Page
from ayame.basic import Label
class HelloWorld(Page):
def __init__(self):
super().__init__()
self.add(Label('message', 'Hello World!'))
application = Ayame(__name__)
map = application.config['ayame.route.map']
map.connect('/', HelloWorld)
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ayame="http://hattya.github.io/ayame">
<head>
<title>HelloWorld</title>
</head>
<body>
<p ayame:id="message">...</p>
</body>
</html>
Ayame is distributed under the terms of the MIT License.