djangosnippets.org: Latest snippets posted by sean2000https://djangosnippets.org/users/sean2000/2008-01-31T16:25:04.728417-06:00sean2000Navigation list from YAML file
2008-01-31T16:25:04.728417-06:00sean2000https://djangosnippets.org/snippets/575/<p>Tag to generate a navigation list from a YAML file.</p>
<p>Generates a series of divs but to be more semantically correct could do a ul or dl.</p>
Freely redistributableLink filter
2007-12-14T23:28:20.647844-06:00sean2000https://djangosnippets.org/snippets/511/<p>Almost too dumb to be worth posting but its saved me a lot of typing.</p>
<p>Instead of:</p>
<pre><code><div>
<a href="{{ object.get_absolute_url }} class="object-icon">{{ object }}</a>
</div>
</code></pre>
<p>just put:</p>
<pre><code><div>{{ object|link }}</div>
</code></pre>
Freely redistributable