NAME

Chronicle::Plugin::YouTube - Allow Youtube videos to be embedded.

DESCRIPTION

This plugin allows simple markup to be expanded into inline YouTube videos. The tag "youtube" will also be automatically applied to the appropriate entries.

For example the following blog-post will contain an inline video:

    Title: My Title
    Date: 10th March 2015

    <youtube>XXXXX</youtube>

METHODS

Now follows documentation on the available methods.

on_insert

The on_insert method is automatically invoked when a new blog post must be inserted into the SQLite database, that might be because a post is new, or because it has been updated.

The method is designed to return an updated blog-post structure, after performing any massaging required. If the method returns undef then the post is not inserted.

This plugin will look for lines of the form:

    <youtube>$ID</youtube>

Any such link will be replaced by an inline version of the video, and the blog-post will have the string youtube added to its tag-list.

LICENSE

This module is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or

b) the Perl "Artistic License".

AUTHOR

Steve Kemp <steve@steve.org.uk>