djangosnippets.org: Latest snippets tagged with 'inclusion-tag'http://djangosnippets.org/tags/inclusion-tag/2015-06-19T10:12:27.396198-05:00Template tag to render collections.Counter as an html table
2015-06-19T10:12:27.396198-05:00asfaltboyhttp://djangosnippets.org/snippets/10502/<p>Render a given instance of collections.Counter into a 2 column html table.</p>
<p>Optionally accepts <code>column_title</code> keyword argument which sets the table
key column header.</p>
<p>Usage:</p>
<pre><code>{% counter_table event_counter column_title='event type' %}
</code></pre>
<p>The above will render the a table from the <code>event_counter</code> variable with the first (key) column set to "event …</p>
Freely redistributableFeed Reader Inclusion Tag with Caching
2007-08-24T13:15:54.344363-05:00baumer1122http://djangosnippets.org/snippets/384/<p>A revisit of <a href="http://www.djangosnippets.org/snippets/311/">the original snippet</a> with simple caching.
</p>
Freely redistributableFeed Reader Inclusion Tag
2007-07-12T13:13:44.641089-05:00baumer1122http://djangosnippets.org/snippets/311/<p>This is an inclusion tag that can be used to pull in posts from any feed to a template. It doesn't do any caching, so it may slow down page load times.
Depends on <a href="http://www.feedparser.org">Feedparser</a>.
</p>
<p>Template usage:
{% pull_feed 'http://www.djangosnippets.org/feeds/latest/' 3 %}
</p>
Freely redistributable