public
Description: various plugin for blosxom 2.x
Homepage:
Clone URL: git://github.com/hail2u/blosxom-plugins.git
blosxom-plugins / oddoreven
100644 40 lines (29 sloc) 0.563 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Blosxom Plugin: oddoreven
# Author(s): Kyo Nagashima <kyo@hail2u.net>
# Version: 2005-08-26
# Blosxom Home/Docs/Licensing: http://www.blosxom.com/
 
package oddoreven;
 
use strict;
use vars qw($odd $even $str);
 
# --- Configurable variables -----------
 
# --- Plug-in package variables --------
 
$odd = 1;
$even = 0;
$str = 'odd';
 
# --------------------------------------
 
sub start {
  return 1;
}
 
sub story {
  if ($odd) {
    $odd = 0;
    $even = 1;
    $str = 'odd';
  } else {
    $odd = 1;
    $even = 0;
    $str = 'even';
  }
 
  return 1;
}
 
1;