Skip to content

Instantly share code, notes, and snippets.

@hrkokw
Last active September 18, 2021 01:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrkokw/ccc7ac34b1966d559977cfd2af515d82 to your computer and use it in GitHub Desktop.
Save hrkokw/ccc7ac34b1966d559977cfd2af515d82 to your computer and use it in GitHub Desktop.
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