Skip to content
Browse files

Message when module has no pod

  • Loading branch information...
1 parent a6f86b0 commit fe23345e63270a48539e8e859d3b95715a9fd97b @mfontani committed Sep 8, 2010
Showing with 9 additions and 2 deletions.
  1. +9 −2 Leguminous
View
11 Leguminous
@@ -110,7 +110,8 @@ get '/:module' => sub {
pomtoc => $pomtoc,
filename => $file,
title => $module,
- module => $module
+ module => $module,
+ empty => $pomhtml =~ /^\s*$/g ? 1 : 0,
);
};
@@ -155,7 +156,13 @@ Error processing POD: <%= $error %>
<div id="title">POD for <%= $module %> (<%= $filename %>)</div>
<div style="height:20px;"></div>
<div id="toc"><%== $pomtoc %></div>
-<div id="pom"><%== $pomhtml %></pom>
+<div id="pom">
+% if ($empty) {
+<div style="height:20px;"></div>
+<div id="nopod">This module has no POD :(</div>
+% }
+<%== $pomhtml %>
+</div>
@@ layouts/html5.html.ep
<!doctype html>

0 comments on commit fe23345

Please sign in to comment.
Something went wrong with that request. Please try again.