Skip to content
Build a maintainable navigation breadcrumb by just typing its contents on separate lines. (Django)
Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
easy_breadcrumb
.gitignore
README.rst
manage.py

README.rst

Easy Breadcrumb!

Build a "navigation breadcrumb" by just typing its contents on separate lines.

Example::

<div class="breadcrumbs with-urls">

{% with foxnews_url="http://foxnews.com" trolling_url="http://en.wikipedia.org/wiki/Troll_(Internet)" %}

{% breadcrumb %}

Yahoo -|- http://yahoo.com

Fox News -|- {{ foxnews_url }} trolling -|- {{ trolling_url }}

{% endbreadcrumb %}

{% endwith %}

</div>

turns into this HTML...:

<div class="breadcrumbs with-urls">

    <li ><span class="caret">&raquo;</span> <a href="http://yahoo.com">Yahoo</a></li>
    <li ><span class="caret">&raquo;</span> <a href="http://foxnews.com">Fox News</a></li>
    <li ><span class="caret">&raquo;</span> <a href="http://en.wikipedia.org/wiki/Troll_(Internet)">trolling</a></li>

</div>
You can’t perform that action at this time.