> Wouldn't it be better to add global_nav_${c.active_global_nav}" in the template? That way the CSS class and c.active_global_nav would always be in sync.

ok, but why in the template and not in the controler?