Questions tagged [mojolicious]

Mojolicious is an MVC web framework in Perl.

Back in the early days of the web there was this wonderful Perl library called CGI, many people only learned because of it. It was simple enough to get started without knowing much about the language and powerful enough to keep you going, learning by doing was much fun. While most of the techniques used are outdated now, the idea behind it is not. Mojolicious is a new attempt at implementing this idea using state of the art technology.

Features An amazing web framework supporting a simplified single file mode through Mojolicious::Lite. Powerful out of the box with RESTful routes, plugins, Perl-ish templates, session management, signed cookies, testing framework, static file server, I18N, first class unicode support and much more for you to discover.

Features

  • An amazing MVC web framework supporting a simplified single file mode through Mojolicious::Lite. Powerful out of the box with RESTful routes, plugins, Perl-ish templates, session management, signed cookies, testing framework, static file server, I18N, first class unicode support and much more for you to discover.
  • Very clean, portable and Object Oriented pure Perl API without any hidden magic and no requirements besides Perl 5.8.7.

  • Full stack HTTP 1.1 and WebSocket client/server implementation with IPv6, TLS, Bonjour, IDNA, Comet (long polling), chunking and multipart support.

  • Builtin async IO web server supporting epoll, kqueue, UNIX domain sockets and hot deployment, perfect for embedding.

  • Automatic CGI, FastCGI and PSGI detection.

  • JSON and XML/HTML5 parser with CSS3 selector support.

  • Fresh code based upon years of experience developing Catalyst.

Resources and links

672 questions
0
votes
1 answer

Import/Export errors with morbo when using Mango

I'm working on a fresh Ubuntu vm, I've imported Mojolicious, Mango and MongoDB all through terminal (apt-gets and curls) but when I try and run any project that implements Mango - using command: morbo project/script/project It returns the…
0
votes
1 answer

Processing Doxygen HTML output from C source with perl--how to load files from href?

I have a C program with countless source files, and I've run Doxygen on it producing HTML. Next I want to generate some C code based on what I find in the HTML. I've created a script with Mojo::Dom. I can extract much of the information I want…
0
votes
1 answer

Run Perl Mojolicio Server from SSH

I have a mojolicio server on a machine where I connect to it from another machine. I have a script that checks if the mojolicio is up - and run it if it is not running. I use the following command line to run the server: ssh root@hostname 'cd…
iseif
  • 297
  • 2
  • 14
0
votes
1 answer

Perl is there a way to reexport the imported variables

Is there a way to re-export the variables that are imported from another module. Thanks
PMat
  • 2,039
  • 2
  • 29
  • 46
0
votes
1 answer

Mojolicious Export does not work with Mojo::Loader

I had exported some constants from my module. In my script I am loading my module using Mojo::Loader my module use constant FALSE => 0; use constant TRUE => 1; our @EXPORT = qw(FALSE TRUE); In my…
PMat
  • 2,039
  • 2
  • 29
  • 46
0
votes
2 answers

call application command from specific mojolicious installation

I need to call my own mojolicious command from command line, using specific mojolicius intallation (System version of mojolicius is too old, and I can't update it). How can I do this? something like: $ ./kraih-mojo-97e88d1/script/mojo…
0
votes
2 answers

define textarea as required with mojolicious tag helper

How do i define an textarea as required with mojolicious tag helper? I need to generate a textarea like this When trying to do the same with tag helper %= text_area 'comment', 'required' I get…
David Michael Gang
  • 7,107
  • 8
  • 53
  • 98
0
votes
1 answer

Mojolicious not following redirection from webarchive.org

I'm using Mojolicious DOM and UserAgent to get the source of a page from Webarchive.org, parse it, and import it into a Dotclear database (using webarchive as a backup). In the source, there are "Previous" and "Next" links allowing to get to the…
PaKempf
  • 43
  • 1
  • 8
0
votes
2 answers

syntax error at template rout.html.ep from DATA

I do have HTML inside CGI code as following app->start __DATA__ @@ rout.html.ep <% if ($errormsgs) { %> <% for my $e (@$errormsgs){ %> <%=$e%>
<% } %> Go back to fix the form
<% } %> <% else{…
user2881181
0
votes
1 answer

Heroku push rejected in Mojolicious full app

I'm creating a full Mojolicious 4.58 app and trying to deploy it to Heroku. mojo generate app MyApp To the root directory of the app, and according to https://github.com/judofyr/perloku, I've added a Makefile.PL #!/usr/bin/env perl …
0
votes
1 answer

Why is morbo not found after installing mojolicious?

I have installed mojolicious by the following commands $ sudo su # curl get.mojolici.us | sh Unfortunately, when I run morbo to test my app, I am given an error stating that the command is not found. I then ran cpan install Mojolicious and it…
user1876508
  • 12,864
  • 21
  • 68
  • 105
0
votes
1 answer

Error when closing pipe to sendmail

I am using perl module Mail::Builder::Simple to send email. It using the sendmail utility. I get this error when sending the email error when closing pipe to sendmail: Trace begun at /usr/local/share/perl5/Email/Sender/Transport/Sendmail.pm line…
PMat
  • 2,039
  • 2
  • 29
  • 46
0
votes
1 answer

How can I redirect or capture session timeout event in Mojolicious?

I'm writing a small application written with Mojolicious and I was wondering how I could go about alerting and/or redirect a user on session timeout? Many thanks.
user1768233
  • 1,409
  • 3
  • 20
  • 28
0
votes
1 answer

How to use Mojolicious app inside DBIx Class schema?

I have Mojolicious application that uses DBIx::Class. It is working fine, but now I would like to use Mojolicious app object inside DBIx::Class schema module. In template I use this code to display link:
410503
  • 377
  • 1
  • 13
0
votes
2 answers

Domain dependent routing in Mojolicious

I am writing a website in Mojolicious which needs to route to certain files depending on the domain name. Ie: mydomain.com/foo -> controllerA#foo mydomain.es/foo -> controllerB#foo The documentation gives the following…