You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/17 17:52:24 UTC
svn commit: r1578458 - /thrift/cms-site/lib/path.pm
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/%3cA9426854-4369-4D29-8E1D-7328904981A6@manbert.com%3e"
]
]
-
-
+
+
# Item, Automated via configure, Location of versioning file
versioning: [
[ "thrift-compiler", "yes", "configure.ac" ],