NAME

Statocles::Plugin::VideoTag - Change video file anchors to video elements

VERSION

version 0.0100

SYNOPSIS

# site.yml
site:
  class: Statocles::Site
  args:
      plugins:
          video_tag:
              $class: Statocles::Plugin::VideoTag
              $args:
                   file_type: 'ogg'

DESCRIPTION

Statocles::Plugin::VideoTag changes video file anchor elements to video elements.

ATTRIBUTES

file_type

The file type to replace.

Default: mp4

METHODS

video_tag

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

Process the video bits of a Statocles::Page.

register

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

SEE ALSO

Statocles

Statocles::Plugin

Statocles::Plugin::AudioTag

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) 2021 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.