# draft of the module code
package YourNameApp;
use Dancer2;
# this is the root and will show the index.tt
get '/' => sub {
template 'index' => { 'title' => 'index: choose an action' };
};
####
<% title %>
# put here the rest of your HTML, probably a list of link pointing to other routes, like:
# 1) Insert all Apps belonging to a group
# pointing to /ins_all_apps
##
##
...
get '/ins_all_apps' => sub {
# call your own sub that you can put in this same file
my @results = get_reults_of_ins_all_apps;
# render the appropriate template
template 'results' => { 'descr' => $resutls[0],
'full_text' => $resutls[1] };
};