This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
hyde
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
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
3df7a9f1b4
commit
3e1ea83378
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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">
<h2><a href="{{ article.href|e }}">{{ article.title|e }}</a></h2>
<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>
{%- endfor %}
Write
Preview
Loading…
Cancel
Save