Alexis Sukrieh > Dancer2-0.04 > Dancer2

Download:
Dancer2-0.04.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.04   Source   Latest Release: Dancer2-0.150000

NAME ^

Dancer2 - Lightweight yet powerful web application framework

VERSION ^

version 0.04

DESCRIPTION ^

Dancer2 is the new generation of Dancer, the lightweight web-framework for Perl. Dancer2 is a complete rewrite based on Moo.

As usual, Dancer is easy and fun: use Dancer2; get '/' => sub { "Hello World" }; dance;

This is the main module for the Dancer2 distribution. It contains logic for creating a new Dancer2 application.

If you are looking for info on how to write a webapp with Dancer2 you probably want to look at Dancer2::Manual or Dancer2::Cookbook.

You are also welcome to join our mailing list at dancer-users@perldancer.org, and we're also on IRC: #dancer on irc.perl.org.

METHODS ^

my $runner=import;

This subroutine does most of the work.

First it imports strict and warnings.

Then it does the following for these import options:

:moose

No importing of before and after hooks into your namespace. This is to prevent conflict with Moose et al.

:tests

No importing of pass function. This is to prevent conflict with Test::More et al.

:syntax

Imports syntax only instead of treating your code as a script with command line parameter parsing and built-in web server.

:script

Do not process arguments.

It creates a new runner if one does not exist already.

It will then load additional libraries.

Then create a new Dancer2 app, of type Dancer2::Core::App.

Then it will export all the DSL symbols to the caller.

If any additional argument processing is needed, it will be done at this point.

FUNCTIONS ^

my $runner=runner();

Returns the current runner. It is of type Dancer2::Core::Runner.

core_debug

Output a message to STDERR and take further arguments as some data structures using Data::Dumper

AUTHOR ^

Dancer Core Developers

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Alexis Sukrieh.

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

syntax highlighting: