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

NAME

Dancer - Lightweight yet powerful web application framework

VERSION

version 1.9999_02

DESCRIPTION

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

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 Dancer app, of type Dancer::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 Dancer::Core::Runner.

core_debug

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

AUDIENCE

This doc describes the Dancer application core and therefore meant for Dancer core developers. If you're a user of Dancer, you should forget about this and read the Dancer::Manual.

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

AUTHOR

Dancer Core Developers

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 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.