use Mojo::Home;
# Find and manage the project root directory
my $home = Mojo::Home->new;
$home->detect;
say $home->child('templates', 'layouts', 'default.html.ep');
say "$home";
$home = $home->detect;
$home = $home->detect('My::App');
Detect home directory from the value of the "MOJO_HOME" environment variable or the location of the application class.
my $path = $home->rel_file('foo/bar.html');
Return a new Mojo::Home object relative to the home directory.