Replies: 1 comment 2 replies
-
|
In If you really wish to have a single file full app in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From https://docs.mojolicious.org/Mojolicious/Guides/Growing I want to perversely avoid modules (*.pm) by using packages in a single "Lite" script, and still do testing. I managed to get partway there as zipped below by isolating the Model of MVC into the package Model::Users in login.pl following the Growing example, and can test it with t/login.t with only minor changes.
cd login
chmod 755 login.pl
prove t/login.t
./login.pl daemon
(but "morbo login.pl" is a disaster...)
But when I tried to isolate the Controller::Login, leaving the View in package main in login_mvc.pl , I have something wrong... ouch. It is hard for me to understand the deflation, so to speak. Can anyone help? I hope your teeth don't hurt when you look at this. Thanks. I feel like I am almost there. I am trying to up my game...
chmod 755 login_mvc.pl
etc... trying the passwords from a browser...
Thanks from a newbie...
login.zip
Beta Was this translation helpful? Give feedback.
All reactions