get '/home' => sub { 'Hi, this is home!' }; |
There are a lot of plugins available (database, logging, session handling, REST, AJAX, validation, templates, WebSocket, ...) at CPAN. You can write your own plugin by subclassing Dancer::Plugin.
The framework comes with a script that builds the skeleton of your application, with a nice structure in folders: views, libs, ... it takes seconds to start a new application.
I definitely recommend Dancer to you. Just install and try!
No hay comentarios:
Publicar un comentario