Last active
September 18, 2021 01:22
-
-
Save hrkokw/ccc7ac34b1966d559977cfd2af515d82 to your computer and use it in GitHub Desktop.
Blosxom z_skipplugins plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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