Quick Install:
|
curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Mojolicious |
Parent Link: http://mojolicio.us/ Gererating a Lite App called hello_world:
|
mojo generate lite_app hello_world |
Place holders:
|
/:foo - Generic place holder /(.foo) - Relaxed place holder which accepts dots /*foo - Wildcard place holder which accepts dots and forward slashes |
Using the above 3 you could drive with 2 more place holders.
|
optional place holder - specifying a default value makes a place holder optional. restrictive place holder - Specifying a set of values makes the place holder restricted. |
Using CPAN to install Mojolicious Plugins:
|
curl -L cpanmin.us | perl - App::cpanmius |
Once the cpanminus tools are installed, you could use cpanm to download and install plugins.
|
cpanm Mojolicious::Plugin::ParmsAuth |
Storing Values:
|
stash - works only with current request flash - works only with the next (future) request session - works with all request until deleted or expired |
Debugging Mojo code:
|
MOJO_USERAGENT_DEBUG=1 perl mojo_script_name.pl |
Finding …
Read More