# ExampleApp
"""
<parameters>
<company>DSSL</company>
<author>AATrubilin</author>
<title>ExampleApp</title>
<version>1.0.0</version>
</parameters>
"""
import datetime
from exthttp import create_app, BaseHandler
app = create_app("ExampleApp")
app.create_module(
name="My First App", icon_path="manual/en/gtk-dialog-important.png",
)
@app.route("index")
class IndexHandler(BaseHandler):
__template__ = "index.html"
def get(self, request, *args, **kwargs):
return self.render(
user=request.user.name,
today=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
)