Dancer2::Template::Caribou::DancerVariables - Role providing Dancer attributes to the template objects
version 1.0.1
package Dancer2::View::MyView; use Moose; use Template::Caribou; with qw/ Template::Caribou Dancer2::Template::Caribou::DancerVariables /; template page => sub { my $self = shift; print ::RAW $self->uri_for( '/foo' ); };
Dancer2::Template::Caribou::DancerVariables adds attributes and methods to allow interactions with the Dancer2 application and its context.
Dancer2::Template::Caribou::DancerVariables
Returns the current Dancer2::Core::Request object.
Returns the absolute url for the given $path.
$path
Yanick Champoux <yanick@babyl.dyndns.org>
This software is copyright (c) 2023 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dancer2::Template::Caribou, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Template::Caribou
CPAN shell
perl -MCPAN -e shell install Dancer2::Template::Caribou
For more information on module installation, please visit the detailed CPAN module installation guide.