myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1565875 - /myfaces/site/cms-site/trunk/lib/view.pm
Date Sat, 08 Feb 2014 02:45:59 GMT
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;



Mime
View raw message