Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How does Dancer handle forms? How do other such frameworks do it?

by davido (Cardinal)
on Feb 15, 2014 at 06:13 UTC ( [id://1075027]=note: print w/replies, xml ) Need Help??


in reply to How does Dancer handle forms? How do other such frameworks do it?

Often with a framework such as Mojolicious, you totally ditch the CGI paradigm of restarting the script on each request. Many times you will just put the script up in a daemon mode and let it listen, or behind the Hypnotoad preforking webserver, or run it plugged into the Plack middleware.

Mojolicious exposes the request's GET or POST data via the "param" method. It's well documented at Mojolicious::Lite GET/POST parameters. There are also 'req' and 'res' accessors that allow you to get information on the request, and make settings for the response. If you want to explore Mojolicous, start with Mojolicious::Lite, which is a very convenient starting point for lightweight apps. The documentation is pretty easy to get started with.


Dave

  • Comment on Re: How does Dancer handle forms? How do other such frameworks do it?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1075027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2026-04-19 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.