You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2013/10/07 19:15:48 UTC
svn commit: r1530003 - /felix/site/trunk/lib/view.pm
Author: clement
Date: Mon Oct 7 17:15:47 2013
New Revision: 1530003
URL: http://svn.apache.org/r1530003
Log:
Define the ipojo structure to inject versions within iPOJO pages.
Modified:
felix/site/trunk/lib/view.pm
Modified: felix/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/felix/site/trunk/lib/view.pm?rev=1530003&r1=1530002&r2=1530003&view=diff
==============================================================================
--- felix/site/trunk/lib/view.pm (original)
+++ felix/site/trunk/lib/view.pm Mon Oct 7 17:15:47 2013
@@ -34,6 +34,7 @@ sub single_narrative {
$args{path} =~ s/\.mdtext$/\.html/;
$args{breadcrumbs} = breadcrumbs($args{path});
$args{svninfo} = svninfo($file);
+ $args{ipojo} = ipojoversion();
print STDOUT "Applying template $template to $file\n";
@@ -446,6 +447,14 @@ sub breadcrumbs {
return join " » ", @rv;
}
+# Returns iPOJO version structure
+sub ipojoversion {
+ my %info;
+ $info{release} = "1.10.1";
+ $info{snapshot} = "1.10.2-SNAPSHOT";
+ return \%info;
+}
+
# Returns information on the last change to the file
# as a reference to a has with three properties