mojolicious Questions

2

Solved

I generated a full app from the command console: mojo generate app MyApp After that i started the dev server: morbo myapp I changed some code, even changed the name of the default controller...
Larena asked 26/10, 2012 at 15:31

3

At work I'm not allowed to use perl for web services. Python is allowed however. What I need to do is serve up the results of some very slow c++ binaries. Each exe takes up to 20 seconds to...
Guitar asked 26/1, 2014 at 10:26

2

In a Mojolicious app, I'm trying to convert ODT files into HTML when a link is clicked. I convert the files by using "soffice", a shell command. Converting the files takes some time. I send status ...
Belonging asked 21/10, 2013 at 22:17

2

I've been working on a Perl Mojolicious project that uses websockets. I'm wanting to launch it on a shared server running apache and use proxyPass and proxyPassReverse to make the url prettier for ...
Multiangular asked 22/1, 2013 at 6:54

1

Solved

Today I started to learn the Mojolicious framework. IMHO, the best way is "learn by examples", so study some "already done" application a play with it. Therefore I downloaded the Mojolicious-Boiler...
Hairpin asked 15/7, 2013 at 13:55

1

Solved

I have this code snippet, I'm trying to push a string to the server every X seconds like: #!/usr/bin/env perl use Mojolicious::Lite; use EV; use AnyEvent; use POSIX qw(strftime); get '/' => su...
Await asked 14/6, 2013 at 16:41

2

Solved

Is Mojolicious' morbo (development web server) good enough for production? Also, is morbo good enough to handle many http requests? Or, must I use Apache's mod_perl for production instead of morb...
Herbart asked 27/4, 2013 at 15:33

2

Solved

Joel Berger posted this little program to start a web server to serve local files, and it works great: use Mojolicious::Lite; @ARGV = qw(daemon); use Cwd; app->static->paths->[0] = getcw...
Perissodactyl asked 30/3, 2013 at 0:19

1

Solved

I am trying to send HTML to a template in Mojolicious and am finding that the html is getting replaced with safe strings somewhere along the way. $self->stash(portalHeaderHtml => "<html&g...
Exacerbate asked 28/3, 2013 at 12:55

3

Solved

I'm usually no Perl coder. However I've got to complete this task. The following code works for me: #!/usr/bin/perl use LWP::UserAgent; use JSON; use strict; my $md5 = $ARGV[0]; $md5 =~ s/[^A-F...
Boiler asked 1/3, 2013 at 7:23

2

Solved

I have some Mojolicious-based apps which happily run under Apache2 with mod_cgi and mod_fastcgi. The urls are for example: http://example.org/oneapp/path/info?foo=bar http://example.org/oneapp?...
Marijuana asked 7/8, 2011 at 10:11

1

Solved

I've written a small web application in Perl and I want to package it up so others can use it. My application has the following components Various Perl modules from CPAN My own modules A MySQLdat...
Studied asked 15/2, 2013 at 12:21

1

Solved

I have been learning how to program apps using the Mojolicious framework and I am stumped as to why you use route names. For example a route could say $r->route('/cities/new') ->via('get') ...
Impassioned asked 15/2, 2013 at 1:26

1

Solved

My Mojolicious application has some custom authentication mechanism, which I implement in a routing condition called auth_permission: $app->add_condition(auth_permission => sub { return is_...
Ellington asked 20/7, 2012 at 9:7

1

I'm new to web coding and have been playing with JQuery recently. I've noticed some behaviour and wanted to know if it is normal behaviour and the best way to deal with it. I am doing a simple get...
Periclean asked 22/11, 2012 at 6:12

1

Solved

I have an application that uses the Mojolicious framework. I have a table in the database that has a list of error response and additional details associated with it. I have created corresponding R...
Spread asked 8/11, 2012 at 16:52

1

Solved

I'm trying to get Template Toolkit to work as the default renderer in Mojolicious::Lite. What I have: use strict; use warnings; use Mojolicious::Lite; use Mojolicious::Plugin::TtRenderer; plugin ...
Panelist asked 12/10, 2012 at 18:6

1

Solved

I am reading the section of Mojolicious::Guides::Growing where it tells you how to grow a Mojolicious::Lite into a "well organized" cpan-uploadable application. First, it tells you to split the M::...
Lashing asked 12/9, 2012 at 22:21

1

Solved

I try the code like this: my @rows = getRows($sth); $self->stash(rows => \@rows); The getRows is a sub function name, and the code works in template. The $rows is a Array. I write code li...
Darky asked 5/8, 2012 at 0:53

1

Solved

I am trying to read the UserAgent from a request and perform operations based on it. Can anyone tell me, how I can get request UserAgent in Mojolicious. Thanks.
Marrufo asked 21/5, 2012 at 17:46

2

Solved

I'm currently trying to port one of my smaller catalyst apps to Mojolicious (just for the fun of it). Say that we are on a page: http://whatever.com/generate. On that page there is a link to for ex...
Waggon asked 10/1, 2011 at 12:13

1

Solved

How do i set a cookie in mojolicious response and later read it from the request. I tried different ways but none of them set cookie on the response object. tried these ways $self->res->coo...
Corcoran asked 7/3, 2012 at 21:6

1

Solved

In my Mojolicious perl code I handle a jobs created and watched from a remote client. I keep the jobs in a array of hashes, which is a global variable. It is then used in handlers of PUT '/job/...
Tameratamerlane asked 23/2, 2012 at 9:52

1

Solved

#!/usr/local/bin/perl use warnings; use 5.014; use Mojolicious::Lite; use DBI; # ... get '/choose' => sub { my $self = shift; my $lastname = $self->param( 'lastname' ); my $sth = $dbh-&g...
Rinaldo asked 12/8, 2011 at 15:41

1

Solved

We have created the following simple Mojolicious controller: package SampleApp::Pages; # $Id$ use strict; use warnings; our $VERSION = '0.01'; use Mojo::Base 'Mojolicious::Controller'; sub ho...
Assertion asked 30/3, 2011 at 12:54

© 2022 - 2024 — McMap. All rights reserved.