Permalink
Browse files

[htmlify] small code simplification

  • Loading branch information...
1 parent b59ba22 commit 821d556e4e11855d55c2a3080e1ac402336d1d57 @moritz moritz committed Jul 5, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 htmlify.pl
View
@@ -97,7 +97,7 @@ ($out_dir = 'html')
)
)
),
- @blocks,
+ @blocks.flat,
]
);
}
@@ -158,12 +158,13 @@ ($out_dir = 'html')
say "Writing $out_dir/routine/$name.html";
my $pod = pod-with-title("Documentation for routine $name",
pod-block("Documentation for routine $name, assembled from the
- following types:"));
- $pod.content.push: @chunks.map(-> Pair (:key($type), :value($chunk)) {
+ following types:"),
+ @chunks.map(-> Pair (:key($type), :value($chunk)) {
pod-heading($type),
pod-block("From ", pod-link($type, "/type/{$type}#$name")),
@$chunk
- });
+ })
+ );
my $file = open :w, "$out_dir/routine/$name.html";
$file.print: pod2html($pod);
$file.close;

0 comments on commit 821d556

Please sign in to comment.