flamingo.me/flamingo-commerce/v3@v3.11.0/breadcrumbs/Readme.md (about) 1 # Breadcrumbs 2 3 The breadcrumbs module contains a small helper that supports breadcrumb navigation data. 4 5 It can be used from two perspectives: 6 * other modules controller can add typical breadcrumb parts - for example the category module adds breadcrumb parts that shows the root category down to the current category. 7 Or the product controller adds the correct breadcrumb to the product view. 8 * you can use the collected breadcrumb in your template 9 10 ## Usage in templates 11 12 Call the data function. For example, in the pug template engine a usage can look like this: 13 14 ```pug 15 var breadCrumbData = data('breadcrumbs') 16 ul 17 each item, index in breadCrumbData 18 li 19 if item.url === "" 20 span.breadcrumbNoLink=item.title 21 else 22 a(href=item.url)=item.title 23 ```