Re: ?: How to (re-)write mason+poet modules
Pedro Melo <[email protected]> Fri, 23 Aug 2013 14:43:45 +0100
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <CACCxPi17u5Lzj-2DyJHMrLg3He+95P11U64CMyCODwgCkQmDHw@mail.gmail.com> |
Hey, I don't have a online guide to give you but usually I put all the biz logic in a module, a regular perl module. If I need or want to use OO Perl, I use Moo to simplify my life. This make it easy to write test cases to make sure everything is fine. Then I use Poet or Dancer2+Mason to do all the routing of requests into Mason templates where I instanciate and use the module. Bye, On Tue, Aug 20, 2013 at 10:01 PM, Peter Eberl <[email protected]> wrote: > Ok some stuff to do tomorrow .... > > I've to re-write 2 CGI scripts. Nothing to fancy, 400 lines of code in > total (at the cgi-level). > > But: How do I do that best so that I can use them as modules in > mason(2.0)+poet? > > is there any specific syntax guide or guide / help I could use in trying > to achieve that (without spending weeks on doing so)? > > kindest regards > > peter > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > _______________________________________________ > Mason-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mason-users > -- Pedro Melo @pedromelo http://www.simplicidade.org/ xmpp:[email protected] mailto:[email protected] ------------------------------------------------------------------------------ Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users