Skip to content

Instantly share code, notes, and snippets.

@hrkokw
Last active Sep 18, 2021
Embed
What would you like to do?
Blosxom z_skipplugins plugin
# -*- mode: perl -*-
# vim: syntax=perl
#
# https://88171.net/blosxom-skipplugins-plugin
package z_skipplugins;
use strict;
use warnings;
my %skip = (
'xml' => [qw( Markdown )],
);
sub start {
return 0 unless defined $skip{$blosxom::flavour};
foreach my $plugin_name (@{$skip{$blosxom::flavour}}) {
if (defined $blosxom::plugins{$plugin_name}) {
$blosxom::plugins{$plugin_name} = -1;
}
}
return 1;
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment