<%! from rwbench import dateformat %> <%inherit file="layout.html" /> <%namespace file="helpers.html" import="input_field, textarea, form" /> <%def name="page_title()">Index Page % for article in articles: <% if not article.published: continue %>

${article.title|h}

written by ${article.user.username|h} on ${dateformat(article.pub_date)}

${article.body}
% endfor <%call expr="form()">
Name
${input_field('name')}
E-Mail
${input_field('email')}
URL
${input_field('url')}
Comment
${textarea('comment')}
Captcha
${input_field('captcha')}
${input_field(type='submit', value='Submit')} ${input_field(name='cancel', type='submit', value='Cancel')}