Mojolicious-Plugin-GoogleAnalytics
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
configure_requires:
ExtUtils::MakeMaker: '6.30'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Mojolicious-Plugin-GoogleAnalytics
requires:
Mojo::Base: '0'
version: '1.005'
Makefile.PL view on Meta::CPAN
"AUTHOR" => "Adam Stokes <adamjs\@cpan.org>",
"BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.30"
},
"DISTNAME" => "Mojolicious-Plugin-GoogleAnalytics",
"EXE_FILES" => [],
"LICENSE" => "perl",
"NAME" => "Mojolicious::Plugin::GoogleAnalytics",
"PREREQ_PM" => {
"Mojo::Base" => 0
},
"TEST_REQUIRES" => {
"Mojolicious" => 0,
"Mojolicious::Lite" => 0,
"Test::Mojo" => 0,
"Test::More" => 0,
"Test::NoTabs" => 0
},
"VERSION" => "1.005",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Mojo::Base" => 0,
"Mojolicious" => 0,
"Mojolicious::Lite" => 0,
"Test::Mojo" => 0,
"Test::More" => 0,
"Test::NoTabs" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
requires "Mojo::Base" => "0";
on 'test' => sub {
requires "Mojolicious" => "0";
requires "Mojolicious::Lite" => "0";
requires "Test::Mojo" => "0";
requires "Test::More" => "0";
requires "Test::NoTabs" => "0";
};
on 'configure' => sub {
lib/Mojolicious/Plugin/GoogleAnalytics.pm view on Meta::CPAN
package Mojolicious::Plugin::GoogleAnalytics;
# ABSTRACT: GoogleAnalytics plugin
$Mojolicious::Plugin::GoogleAnalytics::VERSION = '1.005';
use Mojo::Base 'Mojolicious::Plugin';
has 'template' => 'analytics_template';
sub register {
my ($plugin, $app) = (shift, shift);
push @{$app->renderer->classes}, __PACKAGE__;
$app->helper(analytics => sub {$plugin});
$app->helper(
use Mojo::Base -strict;
use Test::More;
use Mojolicious::Lite;
use Test::Mojo;
plugin 'GoogleAnalytics';
get '/' => sub {
my $self = shift;
$self->render(text => 'Hello Mojo!');
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.198 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )