Krang::Navigation - Krang module to manage UI navbar
use Krang::ClassLoader 'Navigation';
pkg('Navigation')->fill_template(template => $template);
This module manages the navigation for the Krang UI.
Krang::Navigation->fill_template(template => $template)
This call fills the navigation variables in the supplied template. All navigation vars and loops start with ``nav_''. If the template does not include the standard header.tmpl then this call with do nothing.
By default, when the ajax param is true in the query string then
nothing is added to the template. This is almost always what you want
since AJAX requests don't update the nav. But this can be changed via
the force_ajax option below.
It takes the following named arguments:
The HTML::Template object to fill. This argument is required.
Normally AJAX requests don't need to have the navigation added. This allows you to override that. This argument is optional.