Chris@0: {# Chris@0: /** Chris@0: * @file Chris@0: * Theme override to navigate books. Chris@0: * Chris@0: * Presented under nodes that are a part of book outlines. Chris@0: * Chris@0: * Available variables: Chris@0: * - tree: The immediate children of the current node rendered as an unordered Chris@0: * list. Chris@0: * - current_depth: Depth of the current node within the book outline. Provided Chris@0: * for context. Chris@0: * - prev_url: URL to the previous node. Chris@0: * - prev_title: Title of the previous node. Chris@0: * - parent_url: URL to the parent node. Chris@0: * - parent_title: Title of the parent node. Not printed by default. Provided Chris@0: * as an option. Chris@0: * - next_url: URL to the next node. Chris@0: * - next_title: Title of the next node. Chris@0: * - has_links: Flags TRUE whenever the previous, parent or next data has a Chris@0: * value. Chris@0: * - book_id: The book ID of the current outline being viewed. Same as the node Chris@0: * ID containing the entire outline. Provided for context. Chris@0: * - book_url: The book/node URL of the current outline being viewed. Provided Chris@0: * as an option. Not used by default. Chris@0: * - book_title: The book/node title of the current outline being viewed. Chris@0: * Chris@0: * @see template_preprocess_book_navigation() Chris@0: */ Chris@0: #} Chris@0: {{ attach_library('classy/book-navigation') }} Chris@0: {% if tree or has_links %} Chris@0: Chris@0: {% endif %}