Create your first page

Pages are functions decorated by a Grimoire app's page method. For the first page, pass the start keyword argument start=True. This will prompt grimoire to name the associated html page index.html.Notice how the first, and only, argument of our page function is state. We'll get more into that later, but it's important to always include it as the first argument. Every page function also must return some content to render and a state object.

@app.page(start=True)
def start(state):
    return "This is my first grimoire app.", state