You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/02/08 04:10:15 UTC
svn commit: r1565888 - /myfaces/site/cms-site/trunk/lib/view.pm
Author: lu4242
Date: Sat Feb 8 03:10:13 2014
New Revision: 1565888
URL: http://svn.apache.org/r1565888
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=1565888&r1=1565887&r2=1565888&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Sat Feb 8 03:10:13 2014
@@ -316,8 +316,28 @@ sub breadcrumbs {
}
sub pagetree {
+
+ # my %args = @_;
+ # my $template = "content$args{path}";
+ # my $file = $template;
+
+ # Find the list of files
my $dir = @_;
- return "Hello pagetree @_";
+ # my ($dir) = ($file =~ /^(.*)\/.*?/);
+ my $entries = {};
+ sitemapFind($dir, $entries);
+
+ # get the current directory and extract the directory
+ my($tfile, $tdir, $text) = fileparse($args{path});
+ $tdir =~ s{/\z}{};
+
+ my $sitemap = "<ul>\n";
+ $sitemap = sitemapRender($sitemap, $entries, "$tdir");
+ $sitemap .= "</ul>\n";
+ $args{sitemap} = $sitemap;
+
+ return Dotiac::DTL::Template($template)->render(\%args), html => \%args;
+ # return "Hello pagetree @_";
}
# Returns information on the last change to the file