use warnings;
use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
use File::Find;
sub import {
plugin => {
safe => 1,
rebuild => undef,
+ section => "widget",
},
}
my %params=@_;
my $grammar = ($params{grammar} or 'polygen');
my $symbol = ($params{symbol} or undef);
+ my $options = ($config{deterministic} ? '-seed 42' : '');
# Sanitize parameters
$grammar =~ IkiWiki::basename($grammar);
my $res;
if (defined $symbol) {
- $res = `polygen -S $symbol $grmfile 2>/dev/null`;
+ $res = `polygen -S $symbol $options $grmfile 2>/dev/null`;
}
else {
- $res = `polygen $grmfile 2>/dev/null`;
+ $res = `polygen $options $grmfile 2>/dev/null`;
}
if ($?) {