Author: joes
Date: Mon Mar 24 17:59:21 2014
New Revision: 1580943
URL: http://svn.apache.org/r1580943
Log:
cleaner
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=1580943&r1=1580942&r2=1580943&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Mon Mar 24 17:59:21 2014
@@ -7,12 +7,10 @@ sub append_snippet_footer {
my %args = @_;
$args{view} = [@{$args{view}}] if ref $args{view};
my $view = ref $args{view} ? shift @{$args{view}} : delete $args{view};
- $args{content} .= <<EOT;
-
+ $args{content} =~ s/({{ snippet(\w+)\.fetch }}.*\n)/$1
This page was generated from {{ conf.title }}'s **source tree docs**:
-[{{ snippetA.path }}]({{ snippetA.uri }})
-EOT
-
+[{{ snippet$2.path }}]({{ snippet$2.uri }})
+/;
return view->can($view)->(%args);
}