(.*?)
}{}sg; $title = $1; if ($tail_string) { $tail_string = "=pod\n$tail_string"; my $parser = Pod::Simple::HTML->new; $parser->force_title(''); $parser->html_header_before_title(''); $parser->html_header_after_title(''); $parser->html_footer(''); $parser->output_string(\$tail); eval { $parser->parse_string_document($tail_string) }; return if $@; $tail =~ s{\n}{}g; $tail =~ s{(.*?)}{$1}sg; } my $link = ''; if ($head =~ s{^\s*(.*?)
}{}sg) { $link = $1; } my $tags = []; if ($head =~ s{^\s*(.*?)
}{}sg) { my $list = $1; $list =~ s/(?:\r|\n)*//gs; @$tags = map { s/^\s+//; s/\s+$//; $_ } split(/,/, $list); } return { title => $title, link => $link, tags => $tags, head => $head, tail => $tail }; } _call_hook(app, 'init'); theme if $config{'theme'}; shagadelic(@ARGV ? @ARGV : $config{'server'}); __DATA__ @@ index.html.ep % stash description => config('descr'); % foreach my $article (@{$articles}) {