Today i've got a real hack for you. We are going to hijack the Mojolicious router and turn it into a more Catalyst-ish decentralized one, just by using a plugin. Controllers are discovered on application startup and their routes composed automatically, even templates in the DATA sections of each controller are supported. :)
Have fun!
Ever since we added AnyEvent support to Mojolicious through EV, it has been a very popular feature. But so far it required Mojolicious to be in control of the event loop, which limited its usefulness quite a bit. That has changed now, both our web server and user agent have become pretty much indistiguishable from normal AnyEvent components. Today i'm going to demonstrate how you can non-blockingly search Twitter for Perl with the user agent, from a PSGI application running inside the AnyEvent based Twiggy web server. In fact, it should work with any non-blocking capable web framework, such as Catalyst.
Have fun!
If you've ever been wondering how a well designed DBIx::Class model for Mojolicious and Mojolicious::Lite applications would look like, Glen Hinkle got you covered with his latest release.
The example application demonstrates DBIx::Class integration, how to test your web app with Test::Mojo, as well as how to use EP templates with and without tag helpers. For those unfamiliar with testing in general, there are even examples of DBIC schema tests.
Have fun!
In case you've missed it, there is currently a logo contest for MetaCPAN in progress. I'm generally not a big fan of contests, but since it's for the Perl community, i'm participating as well. Here's what i came up with. (the official entry should later show up here)
No fonts were harmed in the making of this logo, every character is custom made. I tried to combine a retro and futuristic feel, to highlight the long history of Perl and the fact that the CPAN is still science fiction for many programming languages. The three flying pixels are a metaphor for modules, small building blocks that can be combined to form something new. Hope you like it.
Have fun!
Happy new year everyone, it's amazing how much Mojolicious has progressed and grown in 2011, Marcus Ramberg has prepared a little retrospection for us.
A new year is upon us, and I figured this would be good time to take a look at the improvements in the Mojolicious framework in the last year. There has been a dazzling number of releases, 122 in fact, including the current release, 2.42.
Have fun!
Merry christmas everyone, today Glen "tempire" Hinkle has a special treat for us. In this Mojocast he demonstrates why interacting with the web from Perl has never been this much fun before, you should take a look!
Mojocast Monday brings you a high-level overview of Mojo::UserAgent, the client side of Mojolicious. DOM Walking, CSS selectors, and watching live requests are just a couple of the things you'll see.
Have fun!
Happy Mojocast monday everyone. This time Glen "tempire" Hinkle will explain to you the very important task of sharing data between the various parts of a Mojolicious application. So, what are you waiting for? Get over there and learn web development with Perl in no time!
Have fun!
By now you've probably heard about WebSockets, and that they are the future of web development, but so far there are very little examples that really show how easy to use they actually are. So today we are going to explore the wonderful world of events in Mojolicious a bit and build a little application that forwards all framework log messages to a browser window. (works best in Chrome)
Have fun!
It is now almost a year since our first stable release, and what a great year it has been. The community really exploded, with now over 100 regulars on the IRC channel and 450 watchers on GitHub, making us by far the most successful CPAN module there. Thanks everyone!
Of course we also have many new features for you, here are the highlights:
And as usual there is a lot more to discover, see Changes on GitHub for the full list of improvements.
Have fun!