diff --git a/build.pl b/build.pl index f27c6bb..654e53b 100755 --- a/build.pl +++ b/build.pl @@ -164,7 +164,7 @@ foreach my $post (@posts) { print " Processing $post->{fname}...\n"; my %post_hash = %utils; $post_hash{post} = \$post; - my $post_content = $post_tmpl->fill_in(HASH => %post_hash); + my $post_content = $post_tmpl->fill_in(HASH => \%post_hash); if (defined($post_content)) { open(POSTOUT, '>', "$postout_path/$post->{fname}.html") or die("Unable to write $post->{fname}.html: $!"); print POSTOUT $post_content; @@ -181,7 +181,7 @@ foreach my $pg (@pages) { print " Processing $pg->{fname}...\n"; my %page_hash = %utils; $page_hash{posts} = \@posts; - my $page_content = $pg->{tmpl}->fill_in(HASH => %page_hash); + my $page_content = $pg->{tmpl}->fill_in(HASH => \%page_hash); if (defined($page_content)) { open(PGOUT, '>', "$out_path/$pg->{fname}") or die("Unable to write $pg->{fname}: $!"); print PGOUT $page_content;