I would like to have the following strucutre in my project:
folder
\_script_1.pl
mojolicious_ui_script.pl
HTML
\_website.html.ep
CSS
\_website.css.ep
But I'm just able to get it to work using this default strucutre:
folder
\_script_1.pl
mojolicious_ui_script.pl
templates
\_website.html.ep
website.css.ep
This is a simplified version of the mojolicious_ui_script.pl I´m using:
use utf8;
use open ':std', ':encoding(UTF-8)';
use Mojolicious::Lite;
get "/" => 'website';
get "/website\.css" => { template => 'website', format => 'css'} => 'website-css';
# app->secret('random string to turn off warnings about no secret');
# app->mode('production'); # stop debug output
app->start('daemon', '-l', 'http://*:3000');
I'm stucked finding a way to solve this, as the documentation between the lite version and normal Mojo is sometimes mixed and I don´t if something can be used on both sides, but anyway trying a lot of things with routes I have not been able to chagne this.