/usr/share/doc/python3-jinja2/examples/rwbench/mako
NameSizeModeActions
helpers.html3960644editdlrm
index.html9740644editdlrm
layout.html8620644editdlrm
Edit: /usr/share/doc/python3-jinja2/examples/rwbench/mako/index.html (974B)
<%! 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')}