Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.03 KB

Readme.pod

File metadata and controls

59 lines (35 loc) · 1.03 KB

NAME

Mojolicious::Plugin::Piwik - Use Piwik in Mojolicious

SYNOPSIS

# On startup
plugin 'Piwik' => {
  url => 'piwik.khm.li',
  site_id => 1
};

# In Template
%= piwik_tag

# In controller
my $json = $c->piwik_api('API.getPiwikVersion');

DESCRIPTION

Mojolicious::Plugin::Piwik is a simple plugin for embedding Piwik acreate a configuration file with the necessary information as a perl data structure in t/auth.pl and run make test, for example:

{
  token_auth => '123456abcdefghijklmnopqrstuvwxyz',
  url => 'http://piwik.khm.li/',
  site_id => 1
};

DEPENDENCIES

Mojolicious.

AVAILABILITY

https://github.com/Akron/Mojolicious-Plugin-Piwik

COPYRIGHT AND LICENSE

Copyright (C) 2012, Nils Diewald.

This program is free software, you can redistribute it and/or modify it under the same terms as Perl.

This plugin was developed for khm.li - Kinder- und Hausmärchen der Brüder Grimm.