The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Plugin::Pedro - A web-based Perl editor Mojolicious plugin

SYNOPSIS

  # As a Mojolicious plugin
  $self->plugin('Pedro');

  # As a Mojolicious::Lite plugin
  plugin 'Pedro';
  
  # Or as a seperate Pedro webserver
  $ pedro
  

DESCRIPTION

This is a web-based Perl editor that runs inside your favorite modern browser. It can embedded in your Mojolicious plugin to edit your files, or it can be be run as a separate Perl webserver.

There are several operation modes for Pedro:

  • As a separate Pedro process, please run the following command and it will launch the default browser automatically:

      pedro
  • As a Mojolicious plugin, please add the following code to your script to enable /pedro route:

      $self->plugin('Pedro');
  • As Mojolicious::Lite plugin, please add the following code to your script to enable /pedro route:

      plugin 'Pedro';

    To access Pedro, please type http://127.0.0.1:3000/pedro after your Mojolicious application starts.

METHODS

Mojolicious::Plugin::Pedro inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

  $plugin->register;

Register plugin in Mojolicious application.

SUPPORT

If you find a bug, please report it in:

http://code.google.com/p/mojolicious-plugin-pedro/issues/list

If you find this module useful, please rate it in:

http://cpanratings.perl.org/d/Padre-Plugin-Pedro

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicio.us, PPI.

AUTHOR

Ahmad M. Zawawi <ahmad.zawawi@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Ahmad M. Zawawi

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.