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

How can I have dependencies installed automatically when using Module::Build::Mojolicious?

I'm trying to package up a Mojolicious App I wrote and have been following the instructions with Mojolicious::Plugin::InstallablePaths. My Build.PL looks something like this; use Module::Build::Mojolicious clean_install => 1; my $builder =…
user1768233
  • 1,409
  • 3
  • 20
  • 28
0
votes
1 answer

Intermittent errors with new code release to existing Mojolicious app

I'm having a problem with an existing Mojolicous app. I have added some new routes, views, controllers, and models, and am returning database results to view using Rose::DB::Object ORM. I updated the production version today with code that had been…
dudeman
  • 503
  • 3
  • 11
0
votes
1 answer

url_for with target='_blank'

How to create a link with Mojolicious tag-helper url_for which opens in a new window/tab? The result should be HTML-Code like RBA List
lanti
  • 529
  • 3
  • 15
0
votes
1 answer

websocket onmessage not firing during ajax request

I have a web application that performs a Jquery .post request for database queries. I also have three different web socket connections that are used to push status updates from the server to the client (CPU and Memory stats in a live chart,…
mabossert
  • 118
  • 1
  • 10
0
votes
3 answers

Mojolicious connection to DB occasionally crashes

I run a productive app to manage publications of our research group. The app is written in mojolicious framework in perl. I use sqlite3 as a DB and Hypnotoad as an app server. My problem is that the connection to the DB occasionally crashes (2 times…
vikin9
  • 497
  • 4
  • 16
0
votes
1 answer

mojolicious loop through the results of DBIx::Class::Ruleset->search in template

NB. Actually, this code works fine, I just has a bug in my routes. I'll leave the question here in case it's of use to someone... I'm not sure how to access the results of a search within Mojolicious templates For example, I've tried this, which…
mark
  • 1,769
  • 3
  • 19
  • 38
0
votes
1 answer

Mojolicious sharing of form element name between Perl and the template

I'm new at using Mojolicious and therefore I apologize if this is a basic question but I looked around and couldn't find a good way to do it. I would like to know what's the best strategy to share the name of form parameters between the Perl code…
Jerome Provensal
  • 931
  • 11
  • 22
0
votes
1 answer

How is a mojolicious session token created?

Are mojolicious session tokens created in a "standard" way (in a generic sense), or is this up to the individual application? If it is the former, then what is the format? What I saw so far is a base64 encoded JSON fragment (which by itself is…
countermode
  • 276
  • 6
  • 20
0
votes
1 answer

REST Server: Mojolicious truncating stash values

I'm fairly new to Mojolicious and creating REST services. I am trying to write a REST service to query an asset database. An example URL: http://test.example.com:3000/test/asset/web01.example.local That gets routed to the following logic: get…
Mose
  • 541
  • 1
  • 11
  • 27
0
votes
1 answer

How can I remove all selected DOM elements with Mojolicious?

I am trying to remove the first column (and in general the n-th column) from a table with Mojolicious. I currently do it like this: $table->find('td:first')->each(sub { my ($e) = @_; $e->remove }); but this isn't working. What am I doing…
simone
  • 4,667
  • 4
  • 25
  • 47
0
votes
3 answers

Mojolicious redirect from http://www.domain.org to http://domain.org

I use Mojolicious (not lite) and morbo server. How can I redirect request from http://www.domain.org at http://domain.org?
user2427770
  • 130
  • 9
0
votes
1 answer

How can I add HTML elements to stash mixed with text?

I'm adding a string with HTML
within it to the stash. This stash value is then used to populate a text area. The problem is the browser converts the > and < to lt; and gt; and it displays wrong in the browser. Is there a way to stop this from…
user1768233
  • 1,409
  • 3
  • 20
  • 28
0
votes
1 answer

mojolicious - barewords - mojocast 2

Following along with mojocasts episode 2 to learn mojolicious. I have got the example in #!/usr/bin/env perl use Mojolicious::Lite; get '/:fname/:lname' => sub { shift->render('hello'); }; app->start; __DATA__ @@ hello.html.ep
sayth
  • 6,696
  • 12
  • 58
  • 100
0
votes
1 answer

Equivalent for Dancer of Mojolicious Mojolicious::Plugin::PODRenderer?

I would like to generate documentation in a Dancer application in the same way that Mojolicious does with Mojolicious::Plugin::PODRenderer, I mean in the browser, under the /perldoc path. Does somebody knows a module that can help? I found no…
smonff
  • 3,399
  • 3
  • 36
  • 46
0
votes
3 answers

Mojolicious, morbo command not found

I've installed Mojolicious on OS X Mavericks using the instructions found on the Mojolicious web page (http://mojolicio.us/). The directions state " To run this example with the built-in development web server just put the code into a file and…