The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.0204

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

https://ology.github.io/2020/12/06/making-a-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.