NAME

App::Web::NAOdash - Analyze NetHack xlogfiles and extract statistics (web interface)

SYNOPSIS

# In app.psgi
use App::Web::NAOdash;
use Plack::Builder;

builder {
  mount '/dash/' => App::Web::NAOdash->new->to_app;
  mount '/json/' => App::Web::NAOdash->new(json => 1)->to_app;
  ...
}

DESCRIPTION

App::Web::NAOdash is a web interface to NetHack::NAOdash.

It handles URLs of the form /username, where username is a NAO username. It retrieves the xlogfile from NAO and returns the result of the analysis.

Two query parameters are accepted: include_versions and exclude_versions, both of which can take multiple values by specifiying them multiple times. They are passed directly to the naodash_user function, see the documentation of NetHack::NAOdash for an explanation of their function.

The constructor takes a single named parameter, json, that is false by default. The result will be returned as HTML is json is false, as JSON if json is true.

SEE ALSO

NetHack::NAOdash, App::NAOdash

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2015 by Marius Gavrilescu

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.