% for my $year (history_years()) { % my $link_to = $year->[0]; % my $text = $year->[1]; % my $class = $link_to eq $current ? 'active' : 'waves-effect';
  • <%= $text %>
  • % }