Generate series pages
This commit is contained in:
parent
7cf4827d0c
commit
baf8d6556b
8 changed files with 168 additions and 41 deletions
|
@ -5,6 +5,15 @@ use DB::Post;
|
|||
|
||||
use HTML::Functional;
|
||||
|
||||
sub show-html($html) is export {
|
||||
my $out = "<!doctype html>$html";
|
||||
# Work around HTML::Functional automatically putting newlines between tags
|
||||
$out ~~ s:g/'</i>' \v+ '<span>'/<\/i><span>/;
|
||||
$out ~~ s:g/\v+ '</a>'/<\/a>/;
|
||||
$out ~~ s:g/',' \v+ '<span'/,<span/;
|
||||
$out
|
||||
}
|
||||
|
||||
sub opt($test, $item) is export {
|
||||
if $test {
|
||||
$item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue