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 22:24:08 UTC
svn commit: r1578594 - /thrift/cms-site/trunk/lib/path.pm
Author: joes
Date: Mon Mar 17 21:24:08 2014
New Revision: 1578594
URL: http://svn.apache.org/r1578594
Log:
no functional change just simlifications
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=1578594&r1=1578593&r2=1578594&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Mon Mar 17 21:24:08 2014
@@ -1,11 +1,13 @@
package path;
use YAML::XS;
-my $yaml = join "", <DATA>;
-my $conf = Load($yaml);
-
our @patterns = (
- [qr/\.md(?:text)?$/, single_narrative => { conf => $conf, template => 'default.html' }],
+ [
+ qr/\.md(?:text)?$/, single_narrative => {
+ conf => Load(join "", <DATA>),
+ template => 'default.html',
+ },
+ ],
);
1;