Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Render the given template with standard Flask parameters in addition to
the specified template `kwargs`.

src/f/l/flask-mako-legacy-HEAD/examples/flaskr/flaskr.py   flask-mako-legacy(Download)
def show_entries():
    cur = g.db.execute('select title, text from entries order by id desc')
    entries = [dict(title=row[0], text=row[1]) for row in cur.fetchall()]
    return mako.render('show_entries.tpl', entries=entries)
 
            flash('You were logged in')
            return redirect(url_for('show_entries'))
    return mako.render('login.tpl', error=error)