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 03:45:59 UTC
svn commit: r1565875 - /myfaces/site/cms-site/trunk/lib/view.pm
Author: lu4242
Date: Sat Feb 8 02:45:59 2014
New Revision: 1565875
URL: http://svn.apache.org/r1565875
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=1565875&r1=1565874&r2=1565875&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Sat Feb 8 02:45:59 2014
@@ -45,10 +45,9 @@ sub single_narrative {
# render sitemap stuff
my $pagetree = ${args{headers}}{pagetree};
- # if ($pagetree) {
- # $args{ttitle} = "Page tree generated @_[0]";
- # $args{pagetree} = sitemap(@_);
- # }
+ if ($pagetree) {
+ # $args{pagetree} = sitemap($args{path});
+ }
# render tip box with reference to Confluence export
# if translation for a page is still pending
@@ -96,7 +95,8 @@ sub single_narrative {
# use the content as a template if it contains Django templates
if ($args{content} =~ /\{[{%][^}]*[%}]\}/) {
-
+ print STDOUT "Applying $args{path} as a Django template\n";
+ $args{content} = Dotiac::DTL->new(\$args{content})->render(\%args);
}
return Dotiac::DTL::Template($template)->render(\%args), html => \%args;