The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mojolicious::Plugin::Notifications::Assets - Collect Assets of Notification Engines

SYNOPSIS

  use Mojolicious::Plugin::Notifications::Assets;

  my $assets = Mojolicious::Plugin::Notifications::Assets->new;
  $assets->scripts('/myscripts.js');
  $assets->styles('/mystyles.css');

DESCRIPTION

Mojolicious::Plugin::Notifications::Assets establishes a simple collector object for assets, used by Mojolicious::Plugin::Notifications.

METHODS

new

  my $assets = Mojolicious::Plugin::Notifications::Assets->new;

Create a new assets object.

scripts

  $assets->scripts('/myscripts.js');
  my @scripts = $assets->scripts;

Add scripts to the asset list or return the collected scripts in sorted order.

styles

  $assets->styles('/mystyles.css');
  my @styles = $assets->styles;

Add styles to the asset list or return the collected styles in sorted order.

AVAILABILITY

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

COPYRIGHT AND LICENSE

Copyright (C) 2014-2015, Nils Diewald.

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.