BGA
% if ($section) {
% if ($subsection) {   % } <% $section %> | % if ($subsection) { <% $subsection %> % }
% }
% if ($section) { % # Build component path % if ($subsection) { % $componentpath="content/$section/$subsection.html"; % } else { % $componentpath="content/$section/index.html"; % } % # Run component % if ($m->fetch_comp($componentpath)) { <& $componentpath, %ARGS &> % } else { Section could not be found. % } % } else { <& content/welcome.html, %ARGS &> % }
<%init> my $componentpath; <%args> $section=>"" $subsection=>"" $query=>"" $password=>""