A complete Dancer app 

package TimeApp;
use Dancer;

get '/' => sub {
    return "The time is: " . localtime();
};

dance;