qw( class_type );
use Unexpected::Functions qw( UnknownMethod Unspecified );
use HTML::Tiny;
use JSON::MaybeXS;
use Try::Tiny;
use Moo;
=encoding utf-8
=head1 Name
Web::Components::Navigation - Co
mg/icons.svg';
=item C<json_view>
An immutable string which defaults to C<json>. Stashed by C<finalise> as the
view which will serialise the response as JSON
=cut
has 'json_view' => is => 'ro', is
'class' => "navigation ${location} ${display}",
'data-navigation-config' => $self->_json->encode({
'menus' => $self->_menus,
'messages' => $self->_messages