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/20 02:56:41 UTC

svn commit: r1579502 - /thrift/cms-site/trunk/lib/view.pm

Author: joes
Date: Thu Mar 20 01:56:41 2014
New Revision: 1579502

URL: http://svn.apache.org/r1579502
Log:
almost there

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

Modified: thrift/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1579502&r1=1579501&r2=1579502&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Thu Mar 20 01:56:41 2014
@@ -14,13 +14,12 @@ sub thrift_preprocessor {
     delete $args{header};
 
     my $key = "_snippet_a";
-    my $url_template = $args{conf}->{snippet_url};
     $args{content} =~ s{\[XXXsnippet:([^\]]+)\]}
                        {
                            my $template = $1;
                            my %a = map {split /=/, $_, 2} split /:/, $template;
-                           $args{$key} = ASF::Value::Snippet->new(template => $url_template, %a);
-                           "{{ " . $key++ . ".list.$a{index} }}";
+                           $args{$key} = ASF::Value::Snippet->new(type => "git", %a);
+                           "{{ " . $key++ . ".fetch }}";
                        }ge;
 
     return view->can("memoize")->(%args);