Author: joes
Date: Mon Mar 17 16:52:24 2014
New Revision: 1578458

URL: http://svn.apache.org/r1578458
Log:
port to perl

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

Modified: thrift/cms-site/lib/path.pm
URL: 
http://svn.apache.org/viewvc/thrift/cms-site/lib/path.pm?rev=1578458&r1=1578457&r2=1578458&view=diff
==============================================================================
--- thrift/cms-site/lib/path.pm (original)
+++ thrift/cms-site/lib/path.pm Mon Mar 17 16:52:24 2014
@@ -1,3 +1,20 @@
+package path;
+use YAML ();
+use strict;
+use warnings;
+
+my $yaml = "";
+$yaml .= $_ while <__DATA__>;
+my $conf = YAML::Load($yaml);
+
+
+our @patterns = (
+    [qr/\.md$/, single_narrative => { conf => $conf }],
+);
+
+1;
+
+__DATA__
 text_extensions: [ 'erb', 'html', 'less', 'md', 'txt', 'xml' ]
 output_dir: publish
 index_filenames: [ 'index.html' ]
@@ -68,8 +85,8 @@ testimonials: [
           
"http://mail-archives.apache.org/mod_mbox/thrift-user/201401.mbox/%[email protected]%3e";
 
           ]
     ]
-    
-    
+
+
 # Item, Automated via configure, Location of versioning file
 versioning: [
     [ "thrift-compiler", "yes", "configure.ac" ],


Reply via email to