mojolicious Questions

1

Solved

I'm reading tweetylicious source from github to study Mojolicious framework: However I'm confused by below piece of code ladder sub .... What does it mean in Perl? It looks like not a regular Perl...
Impulsion asked 22/5, 2018 at 3:11

4

Solved

I copied this systemd service file from the lighttpd-package and adapted it to make systemd start the mojolicious built-in server daemon. Can I keep the ExecReload and the KillSignal setting for th...
Summer asked 21/6, 2012 at 15:4

1

Solved

I can fire up my Mojo app via systemd without any issues, but I can't stop or restart it in the same way. I've poached my config mostly from the Mojo docs at http://mojolicious.org/perldoc/Mojolici...
Richly asked 13/1, 2018 at 16:44

1

Solved

I'd like to access the template name in Mojolicious from inside the template itself for debugging purposes, in the same way the Template Toolkit does (see here) The variable __FILE__ works neatly ...
Napoli asked 21/12, 2017 at 15:21

1

Solved

I have some long running code that I'd like to execute after rendering in a Mojolicious app. I'd like to avoid using Minion queues as I'd be calling many very short processes, and I've looked into...
Dynasty asked 4/1, 2018 at 9:19

1

Solved

I have the layout like this: @@ layouts/v2.html.ep <html lang="en"> <head> %= content_for 'stylesheets' </head> <body> %= include 'layouts/v2/header' <main class="m...
Swifter asked 13/12, 2017 at 16:52

1

Solved

In my Mojolicious app I need to use the client's IP address ($c->tx->remote_address) for rate limiting of a service. This works well. I am now trying to build a unit test for this feature, b...
Emigration asked 26/10, 2017 at 17:44

3

Solved

I have the following code: $r->find('user')->via('post')->over(authenticated => 1); Given that route I can get to the user route passing through the authenticated check that is setup...
Gavette asked 9/8, 2012 at 15:48

2

Solved

I'm building a web application using mojolicious. The logout functionality works only while running the app on local machines. When I try to logout on the app running on the server, the session doe...
Vern asked 9/8, 2017 at 12:27

1

I am developing a Mojolcious standalone application. In the code I am contacting an internal backend where the user should provide some credentials. Currently I am using the credentials inside the...
Mummy asked 22/2, 2017 at 12:4

1

Solved

I want to render .html.ep templates using Mojolicious rendering engine in a standalone script which sends e-mails and is run from cron: #!/usr/bin/perl use feature ':5.10'; use Mojo::Base -strict...
Joella asked 8/2, 2017 at 17:49

3

Solved

It is hard for me to choose between two perl modules - Params::Validate and Params::Check. I am writing a Mojolicious application which should be easily distributable. Generally I mean something li...
Marilynnmarimba asked 1/4, 2011 at 15:37

3

Solved

I am looking for a clean and simple example of how to use the "under" functionality in a "Mojolicious" application. All the examples I find are dealing with "Mojolicious::Lite" (which I don't use)....
Triphylite asked 16/10, 2012 at 12:45

3

Solved

I'm working on a Mojo app and I'd like to be able to consume some Moose roles to make my life easier. On CPAN I see MojoX::Moose::Controller, which has very simple internals. I don't see much else...
Refuel asked 12/6, 2015 at 13:54

2

Solved

I am passing arguments to redirect_to like $c->redirect_to('named', foo => 'bar'); or $c->redirect_to('named, query => {foo=> 'bar'}); but I am not sure how to use it or retrie...
Methodize asked 8/3, 2012 at 17:44

3

I'm new to mojolicious but have been using Perl for some time. I have to jump through some hoops but I can get the interactive Perl debugger (and Komodo) working with remote connections for Apache ...
Manly asked 14/8, 2015 at 15:16

2

I am trying to write a Perl Mojolicious request from CLI. I want to pass a file as a parameter to this request. Below are the things I have tried so far, but no avail. Below Example is what workin...
Condone asked 3/6, 2016 at 10:22

4

Solved

I setup a quick Mojolicious server like this: use Mojolicious::Lite; get '/' => sub { my $self = shift; sleep 5; #sleep here, I'm testing multiple connections at once $self->render_tex...
Funkhouser asked 20/7, 2011 at 21:34

1

Solved

After I run client against websocket echo server, it disconnects after about half a minute with WebSocket closed with status 1006 message. Please suggest how to avoid such behavior (browser clien...
Puce asked 12/5, 2016 at 12:28

2

Solved

I'm playing around with Mojolicious and websockets. I want to send the output of multiple external commands on the server to the webpage. I have no problems with connecting and receiving messages, ...
Emrick asked 17/4, 2016 at 6:16

2

Solved

Perl's Mojolicious supports Server Name Identification (SNI), which some web servers use to host several sites with one HTTPS certificate. I'm working on a system that's not set up to use this, and...
Mediocrity asked 19/2, 2016 at 5:41

3

Solved

I am still learning mojolicious and MVC frameworks in general so this just might be a problem where I am thinking about this wrong so if I am please suggest a better way to do the following. I hav...
Viaticum asked 5/6, 2013 at 15:7

2

Solved

I want to use fancy postfix dereferencing in my Mojo templates. I suppose I could do % use experimental 'postderef'; at the top of every template file, but that seems repetitive and lame. Is th...
Dactylic asked 20/7, 2014 at 23:12

3

Solved

Does Hypnotoad write any Logfile? I can't find anything about that here: http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad Also the option --help says nothing about it. I understand, that applicat...
Parthenopaeus asked 19/8, 2013 at 12:15

2

Solved

I need to be able to write and call my own subroutines in a Mojolicious::Lite Application. However, the intuitive way to do this doesn't seem to be working. I emailed a colleague who has more Mojol...
Unhallow asked 8/4, 2014 at 17:37

© 2022 - 2024 — McMap. All rights reserved.