Gretel v2.0 Release Notes
-
- ๐ Totally rewritten for better structure.
- 0๏ธโฃ
options[:autoroot]
is nowtrue
by default which means it will automatically link to the:root
breadcrumb if no parent is specified. - 0๏ธโฃ Now accepts
options[:class]
for specifying the CSS class for the breadcrumbs container. Default:"breadcrumbs"
. - 0๏ธโฃ Now accepts
options[:current_class]
for specifying the CSS class for the current link / span. Default:"current"
. - ๐
options[:link_last]
was deprecated in a previous version and is now removed. Useoptions[:link_current]
instead. - ๐ The
link
method incrumb :xx do ... end
no longer takes HTML options. The method for this is now by building the breadcrumbs manually (see the readme). - ๐ No longer supports procs for link text or URL as this is unnecessary when you can pass arguments to the block anyway.
- ๐ It now accepts multiple arguments for
crumb
andparent
(see the readme). - Breadcrumbs are now rendered with
<%= breadcrumbs %>
, although you can still use the old<%= breadcrumb %>
(without s). - You can now access view helpers from inside
Gretel::Crumbs.layout do .. end
.