Source

barcamp malacca / example / templates / example / template.html

<html>
<head>
</head>
<body>
<br/><a href='/example/logout/'>logout</a>
<form method='post' action='/example/'>
Fill in your status
<br/><textarea name='posting'></textarea>
<br/><input type='submit' value='submit'/>
</form>
<br/>
{% for d in res %}
    {{d.name}} {{d.score}}
    <br/>
    <a href="/example/like/{{d.id}}/">like</a> <a
    href="/example/hate/{{d.id}}/">hate</a>
    <br/>
{% endfor %}
</body>
</html>