2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * get_items - array of items
30 * has_action - boolean
33 * get_content - string
36 Example context (json):
42 "get_title": "Test title",
43 "get_content": "First & fresh",
49 "get_title": "Second item & a title",
50 "get_content": "Second item",
55 "get_content": "Third item",
60 "get_content": "Fourth & last",
66 <nav aria-label="{{#str}}breadcrumb, access{{/str}}">
67 <ol class="breadcrumb">{{!
70 <li class="breadcrumb-item{{#is_hidden}} dimmed_text{{/is_hidden}}">
71 <a href="{{{action}}}" {{#is_last}}aria-current="page"{{/is_last}} {{#get_title}}title="{{get_title}}"{{/get_title}}>{{{get_content}}}</a>
75 <li class="breadcrumb-item{{#is_hidden}} dimmed_text{{/is_hidden}}">{{{text}}}</li>