myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1565879 - /myfaces/site/cms-site/trunk/lib/view.pm
Date Sat, 08 Feb 2014 02:52:29 GMT
Author: lu4242
Date: Sat Feb  8 02:52:29 2014
New Revision: 1565879

URL: http://svn.apache.org/r1565879
Log:
test how to fix documentation

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

Modified: myfaces/site/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/lib/view.pm?rev=1565879&r1=1565878&r2=1565879&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Sat Feb  8 02:52:29 2014
@@ -47,7 +47,8 @@ sub single_narrative {
     my $pagetree = ${args{headers}}{pagetree}; 
     if ($pagetree) {
         $args{ttitle} = "Page tree generated";
-        $args{pagetree} = sitemap(%args);
+        my($tfile, $tdir, $text) = fileparse($args{path});
+        $args{pagetree} = pagetree($tdir);
     }
     
     # render tip box with reference to Confluence export
@@ -129,6 +130,11 @@ sub news_page {
     return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
 }
 
+sub pagetree {
+   my $dir = @_;
+   return $dir;
+}
+
 # Recursive Sitemap generation
 # Taken from: http://svn.apache.org/repos/asf/chemistry/site/trunk/lib/view.pm
 sub sitemap {



Mime
View raw message