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/24 19:04:48 UTC
svn commit: r1580951 - in /thrift/cms-site/trunk/lib: path.pm view.pm
Author: joes
Date: Mon Mar 24 18:04:48 2014
New Revision: 1580951
URL: http://svn.apache.org/r1580951
Log:
universal
Modified:
thrift/cms-site/trunk/lib/path.pm
thrift/cms-site/trunk/lib/view.pm
Modified: thrift/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1580951&r1=1580950&r2=1580951&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Mon Mar 24 18:04:48 2014
@@ -20,7 +20,7 @@ our @patterns = (
nest => 1,
}],
[qr!^/index\.html$!, snippet => { %thrift_args,
- view => 'news_page',
+ view => [qw/append_snippet_footer news_page/],
headers => { title => "Home" },
}],
[qr!/index\.html$!, offline => { %thrift_args,
Modified: thrift/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1580951&r1=1580950&r2=1580951&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Mon Mar 24 18:04:48 2014
@@ -8,8 +8,8 @@ sub append_snippet_footer {
$args{view} = [@{$args{view}}] if ref $args{view};
my $view = ref $args{view} ? shift @{$args{view}} : delete $args{view};
$args{content} =~ s/({{ snippet(\w+)\.fetch\|\w+ }}.*\n)/$1
-This page was generated from {{ conf.title }}'s **source tree docs**:
-[{{ snippet$2.path }}]({{ snippet$2.uri }})
+<p>This page was generated from {{ conf.title }}'s **source tree docs**:
+[{{ snippet$2.path }}]({{ snippet$2.uri }})<\/p>
/;
return view->can($view)->(%args);
}