Browse Source

Fix the use of unknown dateformat filter dateformat in tests.

Use strftime instead. There seems to be no dateformat filter in jinja
documentation.
main
Vincent Bernat 13 years ago
parent
commit
3e1ea83378
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyde/tests/templates/jinja2/index.html

+ 1
- 1
hyde/tests/templates/jinja2/index.html View File

@@ -6,7 +6,7 @@
<div class="article"> <div class="article">
<h2><a href="{{ article.href|e }}">{{ article.title|e }}</a></h2> <h2><a href="{{ article.href|e }}">{{ article.title|e }}</a></h2>
<p class="meta">written by <a href="{{ article.user.href|e <p class="meta">written by <a href="{{ article.user.href|e
}}">{{ article.user.username|e }}</a> on {{ article.pub_date|dateformat }}</p>
}}">{{ article.user.username|e }}</a> on {{ article.pub_date.strftime('%Y-%m-%d') }}</p>
<div class="text">{{ article.body }}</div> <div class="text">{{ article.body }}</div>
</div> </div>
{%- endfor %} {%- endfor %}


Loading…
Cancel
Save