Navigation list from YAML file
Tag to generate a navigation list from a YAML file. Generates a series of divs but to be more semantically correct could do a ul or dl.
- tag
- navigation
- yaml
Tag to generate a navigation list from a YAML file. Generates a series of divs but to be more semantically correct could do a ul or dl.
Almost too dumb to be worth posting but its saved me a lot of typing. Instead of: <div> <a href="{{ object.get_absolute_url }} class="object-icon">{{ object }}</a> </div> just put: <div>{{ object|link }}</div>
sean2000 has posted 2 snippets.