Author: joes
Date: Tue Mar 18 15:09:48 2014
New Revision: 1578947

URL: http://svn.apache.org/r1578947
Log:
reorder

Modified:
    thrift/cms-site/trunk/lib/path.pm

Modified: thrift/cms-site/trunk/lib/path.pm
URL: 
http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1578947&r1=1578946&r2=1578947&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Tue Mar 18 15:09:48 2014
@@ -5,14 +5,6 @@ use Cwd;
 use strict;
 use warnings;
 
-my @mdfiles;
-find({ wanted => sub {
-         if (/\.md(?:text)?$/) {
-             s/^.*content//;
-             push @mdfiles, $_;
-         }
-}, no_chdir => 1 }, cwd() . "/content");
-
 my $conf = Load(join "", <DATA>);
 
 our @patterns = (
@@ -26,6 +18,14 @@ our @patterns = (
     [qr/\.md(?:text)?$/, single_narrative => {conf => $conf, template => 
'default.html'}],
 );
 
+my @mdfiles;
+find({ wanted => sub {
+         if (/\.md(?:text)?$/) {
+             s/^.*content//;
+             push @mdfiles, $_;
+         }
+}, no_chdir => 1 }, cwd() . "/content");
+
 our %dependencies = (
     "/docs.md" => [ grep s/^content//, glob "content/docs/*" ],
     "/sitemap.html" => \@mdfiles,


Reply via email to