diff -r MyWeb-App/lib/MyWeb/App.pm MyWeb-App-2/lib/MyWeb/App.pm 3c3 < --- > set serializer => 'JSON'; 9a10,14 > post '/test/' => sub { > my $data = from_json( param('json'), {utf8 => 0}); > return { msg => $data->{q} } > }; > 10a16 > diff -r MyWeb-App/views/index.tt MyWeb-App-2/views/index.tt 1,148c1,16 < < < <
< < <
< < <
<

Getting started

<

Here’s how to get dancing:

< <

About your application's environment

< < < < < < <
    <
  1. <

    Tune your application

    < <

    < Your application is configured via a global configuration file, < config.yml and an "environment" configuration file, < environments/development.yml. Edit those files if you < want to change the settings of your application. <

    <
  2. < <
  3. <

    Add your own routes

    < <

    < The default route that displays this page can be removed, < it's just here to help you get started. The template used to < generate this content is located in < views/index.tt. < You can add some routes to lib/MyWeb/App.pm. <

    <
  4. < <
  5. <

    Enjoy web development again

    < <

    < Once you've made your changes, restart your standalone server < (bin/app.pl) and you're ready to test your web application. <

    <
  6. < <
<
<
<
--- > > \ No newline at end of file