Created
April 5, 2012 09:01
-
-
Save skazhy/2309339 to your computer and use it in GitHub Desktop.
Django templatetags example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul> | |
{% for p in posts %} | |
<li><a href="{{ a.url }}">{{ a.title }}</a> | |
{% endfor %} | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load app_tags %} | |
// Lots of HTML | |
<div> | |
{% latest_posts %} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment