| 60 | | for item in data[:-1]: |
|---|
| 61 | | tag[ T.a(href=item['href'])[item['label']],' ',T.span(class_="breadcrumb-separator")[ T.xml('>') ] ,' '] |
|---|
| 62 | | tag[ data[-1]['label'] ] |
|---|
| | 63 | try: |
|---|
| | 64 | for item in data[:-1]: |
|---|
| | 65 | tag[ T.a(href=item['href'])[item['label']],' ',T.span(class_="breadcrumb-separator")[ T.xml('>') ] ,' '] |
|---|
| | 66 | tag[ data[-1]['label'] ] |
|---|
| | 67 | except IndexError: |
|---|
| | 68 | raise FragmentError, 'An error has occured whilst building the breadcrumb trail. This usually occurs when a content template has a breadcrumb trail renderer but the parent nav.yml does not include a reference to the current templates directory. Use -V to find out more information about which page cause this error.' |
|---|
| | 69 | |
|---|