<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Plack::App::Data::Printer - Plack Data::Printer application.

SYNOPSIS
     use Plack::App::Data::Printer;

     my $obj = Plack::App::Data::Printer-&gt;new(%parameters);
     my $psgi_ar = $obj-&gt;call($env);
     my $app = $obj-&gt;to_app;

METHODS
  "new"
     my $obj = Plack::App::Data::Printer-&gt;new(%parameters);

    Constructor.

    Returns instance of object.

  "call"
     my $psgi_ar = $obj-&gt;call($env);

    Implementation of Data::Printer in plack.

    Returns reference to array (PSGI structure).

  "to_app"
     my $app = $obj-&gt;to_app;

    Creates Plack application.

    Returns Plack::Component object.

EXAMPLE
     use strict;
     use warnings;

     use Plack::App::Data::Printer;
     use Plack::Runner;

     # Run application.
     my $app = Plack::App::Data::Printer-&gt;new(
             'data' =&gt; {
                     'example' =&gt; [1, 2, {
                             'foo' =&gt; 'bar',
                     }, 5],
             },
     )-&gt;to_app;
     Plack::Runner-&gt;new-&gt;run($app);

     # Output:
     # HTTP::Server::PSGI: Accepting connections at http://0:5000/

     # &gt; curl http://localhost:5000/
     # {
     #     example   [
     #         [0] 1,
     #         [1] 2,
     #         [2] {
     #                 foo   "bar"
     #             },
     #         [3] 5
     #     ]
     # }

DEPENDENCIES
    Data::Printer, Error::Pure, Plack::Component, Plack::Util::Accessor.

REPOSITORY
    &lt;https://github.com/michal-josef-spacek/Plack-App-Data-Printer&gt;

AUTHOR
    Michal Josef �麖a�嶤k &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    穢 2022 Michal Josef �麖a�嶤k

    BSD 2-Clause License

VERSION
    0.03

</pre></body></html>