[% SET base = ""; SET base = c.cobrand.base_url IF admin; # DEFAULT would make sense here, except it treats the empty string as falsy # and some cobrands want to set ul_class to an empty string. SET ul_class="nav-menu nav-menu--main" UNLESS ul_class.defined; %] [% BLOCK navitem ~%]
  • [%~ IF c.req.uri.path == uri ~%] [% label %] [%~ ELSE ~%] [% label %] [%~ END ~%]
  • [%~ END %] [% UNLESS omit_wrapper %] [% END %]