Dancer::Plugin::Swig - A plugin for swig client
plugins: Swig: service_url: "http://localhost:21060"
In your Dancer application:
package NewApp; use Dancer ':syntax'; use Dancer::Plugin::Swig; our $VERSION = '0.1'; get '/' => sub { render 'index.html', { hello_world => 'howdy' }; }; true;
Dancer::Plugin::Swig provides syntax to interact with a Swig as a service application.
Copyright (c) 2014 Logan Bell and Shutterstock Inc (http://shutterstock.com). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Dancer::Plugin::Swig, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Plugin::Swig
CPAN shell
perl -MCPAN -e shell install Dancer::Plugin::Swig
For more information on module installation, please visit the detailed CPAN module installation guide.