${h.form(url(controller='accounts', action='login_begin'), id='user')} % if c.user: Logged in as ${c.user.name}. % else: % endif ${h.end_form()}