A single-file DSL for the Mojolicious web framework for the Perl language. It is just a tiny wrapper around Mojolicious, so [tag:mojolicious] may be more appropriate for questions not about the DSL itself.
Questions tagged [mojolicious-lite]
77 questions
2
votes
1 answer
Mojolicious basic login with
iam looking for authentification in Mojolicious. I have 2 pages momcorp1 and momcorp2, But i cant pas
between over pages, someone know how do this.
Iam reaading about "under", but i dont undertah how do this.
The other form do this is use…

Memo R
- 67
- 5
2
votes
0 answers
Combining a RabbitMQ consumer and a Mojolicious websocket server
I've got a Mojolicious server inspired by this example, and a RabbitMQ consumer inspired by this example. My plan is to combine them, so that a webclient can access the Mojolicious server and subscribe to some kind of updates. The mojo server will…

Orjanp
- 10,641
- 12
- 36
- 39
2
votes
1 answer
Multiple file upload with mojolicious fails on large number of files
I've hit a wall and my google skills have this time failed me. I'm in the process of learning mojolicious to create a useful front end for a series of Perl scripts that I frequently use. I've got a long way through it but I'm stumped at (multiple)…

user1597452
- 93
- 1
- 5
2
votes
1 answer
Using external template with Mojolicious::Lite
trying to use the HTMLTemplateProRenderer plugin for
Mojolicious::Lite
so that I can use template files in the style of HTML::Template.
The issue is that every example, even documentation, only shows the template file attached to the script. I need…

Maresia
- 67
- 2
- 2
- 6
2
votes
0 answers
Mojo::Redis2 as task queue - nondeterministic behavior
I would like to implement light job queue using Redis (minion requires Postgresql). I can successfully run a minimal example but I have problem with my full Mojolicious application.
In the startup routine and the call look as follows.
sub startup{
…

vikin9
- 497
- 4
- 16
2
votes
1 answer
How can I make a request authorized with Oauth with Mojo::UserAgent?
I am currently trying to make this work:
my $ua = Mojo::UserAgent->new;
my $req = Mojo::Message::Request->new;
my $tx = $ua->build_tx(GET =>…

simone
- 4,667
- 4
- 25
- 47
2
votes
2 answers
Mojolicious: should I use one websocket or several?
I'm teaching myself about Mojolicious and websockets. So far I've got a web page that displays rows from a database, and has buttons to add, delete, and update rows, and to select columns for sorting.
At the moment, it uses 'one-shot' websockets in…

Chris Dennis
- 995
- 7
- 16
2
votes
1 answer
How to add and remove routes dynamically in Mojolicious?
I am trying to put together a maintenance page in my Mojolicious app which all of my users will be shown whenever a file or DB entry is present on the server.
I know I can check for this file or entry on startup and if its there add in my 'catch…

user1768233
- 1,409
- 3
- 20
- 28
2
votes
2 answers
How can I make a Mojolicious::Lite static file downloader?
I'm trying to make a file upload/downloader with Mojolicious::Lite and while the upload section is no problem the download section is causing trouble. This code will let me download small text files but anything else turns into a 0 byte file. Any…

Johan
- 41
- 1
- 4
2
votes
1 answer
Rendering errors in proper format inside under on Mojolicious::Lite
I have an under statement that may generate and error (for instance, authentication error). I use content negotiation all over, and I'd like to return the error inside the under in a proper format. An example code:
under sub {
my $self = shift;
…

Ricardo Panaggio
- 643
- 4
- 9
2
votes
1 answer
How to use common template for mojolocious lite app?
use Mojolicious::Lite;
# /with_layout
get '/a' => sub { my $self = shift;} ;
get '/b' => sub { my $self = shift;} ;
get '/c' => sub { my $self = shift;};
app->start;
__DATA__
@@ a.html.ep
<%=…

joe
- 34,529
- 29
- 100
- 137
1
vote
2 answers
Problems decoding the response body when calling a REST service with Mojolicious for Perl
I am trying to learn how to use the Mojolicious framework for Perl.
I am attempting to register a callback URL with a REST service and save the RequestID returned by the REST service. I successfully get back the request but can't decode the…

Martin R. Smith
- 23
- 3
1
vote
1 answer
use Mojolicious::Lite (perl) - I want to get a list of all PARAMS into a simple @ARRAY
https:///getparam?h1=hello&h2=goodbye
get 'getparam' => sub {
my $c = shift;
print $c->param('h1') . "\n"; # THIS WORKS AS I WOULD EXPECT
my @list_of_all_params = $c->param; # DOES NOT WORK and THIS IS WHAT I WOULD LIKE TO…

Mark Arnold
- 253
- 3
- 9
1
vote
1 answer
How to search from mysql DB with related to selected drop down list in mojolicious perl
I have student ordered information data stored in DB. I want to search those orders in between by dropdown selected from-to date and time-wise. Normally, I can search all data from DB but could not work when I select the dropdown from-to date and…

raju
- 53
- 3
1
vote
2 answers
Perl Mojolicious routes call sub only once
Iam using Mojolicious::Lite to declare routes for a webservice.
Maybe i missunderstood the routes behaviour but if iam calling a subroutine in the routes definition it gets only called once.
I thougt the sub should get triggered every time the…

WastedFreeTime
- 195
- 2
- 3
- 16