model view controller - Writing a MVC application with Perl CGI -
i have client wants me design new web app scratch
the problem wants me use core modules come perl (5.10 or 5.12)
is there way write mvc apps cgi?
i know catalyst, mojolicious , dancer , how easy mvc them, have no clue on how cgi alone
are there code examples see , inspire from? (i've googled didn't find use)
also, mojo , dancer, there way can generate links (routes mojo, , rails) cgi?
thanks
first off, what's reason "core modules only" restriction? mean can't write new modules of own? effective solution undoubtedly convince client let use cpan.
if you're allowed write own non-core modules, able away including new module named "prancer" looks suspiciously dancer? (i.e., grab dancer source tree , s/dancer/prancer/g
across whole thing, add project.)
but, if else fails... yes, it's possible @ least use mvc principles , strong separation of concerns under cgi.pm, although won't have actual framework helping unless write framework yourself. you'll have write database abstraction layer , templating engine yourself, too. know possible because doing myself 5-10 years ago, in dark ages before switched dancer. can't offer examples, though, because i've forgotten buried bodies.
Comments
Post a Comment