| 1 | package Mojolicious::Plugin::SpectreCss; | ||
| 2 | 1 | ▶ | use Mojo::Base 'Mojolicious::Plugin'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | ▶ | use Mojo::File 'path'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $VERSION = '0.01'; | |
| 7 | |||
| 8 | 1 | ▶ | sub register { |
|
Subroutine
register: called CC=1 SCAR=0.0
Pod
documented
| |||
| 9 | 1 | my ($self, $app) = @_; | |
| 10 | |||
| 11 | 1 | my $asset = path(__FILE__)->sibling('SpectreCss')->child('asset'); | |
| 12 | 1 | push @{$app->static->paths}, $asset->child('public')->to_string; | |
| 13 | } | ||
| 14 | |||
| 15 | 1 | 1; | |