<% import config %> % if page_title: ${page_title|h} % else: ${config.TITLE|h} % endif <%block name="head"/>
% if req.current_user(): 注销 % else: 注册 登录 % endif
% for msg in get_messages(): % if msg.tag == 'success':
${msg.txt}
% elif msg.tag == 'error':
${msg.txt}
% endif % endfor ${self.body()} <%block name="script"/>