NAME

Statocles::Plugin::AudioTag - Change audio file anchors to audio elements

VERSION

version 0.0200

SYNOPSIS

# site.yml
site:
  class: Statocles::Site
  args:
      plugins:
          audio_tag:
              $class: Statocles::Plugin::AudioTag
              $args:
                   file_type: 'ogg'

DESCRIPTION

Statocles::Plugin::AudioTag changes audio file anchor elements to audio elements.

ATTRIBUTES

file_type

The file type to replace.

Default: mp3

METHODS

audio_tag

$page = $plugin->audio_tag($page);

Process the audio bits of a Statocles::Page.

register

Register this plugin to install its event handlers. Called automatically.

SEE ALSO

Statocles

Statocles::Plugin

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 by Gene Boggs.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.