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/22 20:53:43 UTC

svn commit: r1580305 - /thrift/cms-site/trunk/lib/path.pm

Author: joes
Date: Sat Mar 22 19:53:43 2014
New Revision: 1580305

URL: http://svn.apache.org/r1580305
Log:
can't improve on standard methods

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=1580305&r1=1580304&r2=1580305&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Sat Mar 22 19:53:43 2014
@@ -6,17 +6,17 @@ use warnings;
 my $conf = Load join "", <DATA>;
 
 our @patterns = (
-    [qr!^/sitemap\.html$!, my_sitemap => {
+    [qr!^/sitemap\.html$!, sitemap => {
         conf       => $conf,
         headers    => { title => "Sitemap" },
         nest       => 1,
     }],
-    [qr!/index\.html$!,    my_sitemap => {
+    [qr!/index\.html$!,    sitemap => {
         conf       => $conf,
         headers    => { title => "Index" }, # "Index" is magical here
     }],
-    [qr/\.md(?:text)?$/,   my_memoize => {
-        view       => [qw/snippet single_narrative/],
+    [qr/\.md(?:text)?$/,   snippet => {
+        view       => 'single_narrative',
         conf       => $conf,
         template   => 'default.html',
         repo       => 'thrift.git',