App-mojopaste
view release on metacpan or search on metacpan
lib/App/mojopaste.pm view on Meta::CPAN
A paste can be embedded in other pages using the query param "embed". Examples:
=over 2
=item * L<http://p.thorsen.pm/mojopastedemo.txt>
Get the raw data.
=item * L<http://p.thorsen.pm/mojopastedemo?embed=text>
Show the paste without any margin/padding and no menu.
=item * L<http://p.thorsen.pm/mojopastedemo/chart?embed=graph>
Show only the graph data.
=item * L<http://p.thorsen.pm/mojopastedemo/chart?embed=graph,heading,description>
Show the graph data, heading and description, but no menus.
=back
=head1 DEMO
You can try mojopaste here: L<http://p.thorsen.pm>.
=head1 INSTALLATION
Install system wide with cpanm:
$ cpanm --sudo App::mojopaste
Don't have cpanm installed?
$ curl -L http://cpanmin.us | perl - --sudo App::mojopaste
$ wget http://cpanmin.us -O - | perl - --sudo App::mojopaste
It is also possible to install L<App::mojopaste> using Docker. Check out
L<https://hub.docker.com/r/jhthorsen/mojopaste> for more information.
=head1 SYNOPSIS
=over 2
=item * Simple single process daemon
$ mojopaste daemon --listen http://*:8080
=item * Save paste to custom dir
$ PASTE_DIR=/path/to/paste/dir mojopaste daemon --listen http://*:8080
=item * Using the UNIX optimized, preforking hypnotoad web server
$ MOJO_CONFIG=/path/to/mojopaste.conf hypnotoad $(which mojopaste)
Example mojopaste.conf:
{
brand_link => "index",
brand_logo => "/images/logo.png",
brand_text => "Mojopaste",
paste_dir => "/path/to/paste/dir",
enable_charts => 1, # default is 0
hypnotoad => {
listen => ["http://*:8080"],
},
}
"enable_charts" is for adding a button which can make a chart of the input
data using L<morris.js|http://morrisjs.github.io/morris.js>
Check out L<Mojo::Server::Hypnotoad> for more hypnotoad options.
=back
=head1 OTHER PASTEBINS
=over 2
=item * L<http://paste.scsys.co.uk>
=item * L<http://paste.ubuntu.com>
=item * L<http://pastebin.com>
=back
=head1 AUTHOR
Jan Henning Thorsen - C<jhthorsen@cpan.org>
=cut
( run in 3.337 seconds using v1.01-cache-2.11-cpan-788537b7465 )