Skip to content

Build a maintainable navigation breadcrumb by just typing its contents on separate lines. (Django)

Notifications You must be signed in to change notification settings

dlam26/easy-breadcrumb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Build a maintainable navigation breadcrumb by just typing its contents on separate lines. (Django)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages