Author: hboutemy
Date: Sun Feb  7 16:55:09 2016
New Revision: 1728990

URL: http://svn.apache.org/viewvc?rev=1728990&view=rev
Log:
[DOXIASITETOOLS-93] added automatic dump of context content

Modified:
    
maven/plugins/trunk/maven-site-plugin/src/it/doxia-formats/src/site/apt/velocity-context.apt.vm

Modified: 
maven/plugins/trunk/maven-site-plugin/src/it/doxia-formats/src/site/apt/velocity-context.apt.vm
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/doxia-formats/src/site/apt/velocity-context.apt.vm?rev=1728990&r1=1728989&r2=1728990&view=diff
==============================================================================
--- 
maven/plugins/trunk/maven-site-plugin/src/it/doxia-formats/src/site/apt/velocity-context.apt.vm
 (original)
+++ 
maven/plugins/trunk/maven-site-plugin/src/it/doxia-formats/src/site/apt/velocity-context.apt.vm
 Sun Feb  7 16:55:09 2016
@@ -30,6 +30,19 @@ Doxia Site Renderer Velocity Context
 
   See {{{http://maven.apache.org/doxia/doxia-sitetools/doxia-site-renderer/} 
doxia-site-renderer}}.
 
+  We have the following keys in the context (automatically extracted and 
sorted):
+
+*-----------------------*-------------------------------------------------------*-----*
+|| variable             || class                                               
 || value
+*-----------------------+-------------------------------------------------------+-----+
+#foreach( $key in $sorter.sort( $context.keys ) )
+#set( $value = $context.get($key) )
+| <<<$key>>>            | <<<#if ($value)$value.class.name#else?#end>>> | #if 
($key != "decoration")<<<$value>>>#end |  
+*-----------------------+-------------------------------------------------------+-----+
+#end
+
+  Handwritten classification:
+
 * Document Variables
 
 
*-----------------------*-------------------------------------------------------*
@@ -102,7 +115,7 @@ Doxia Site Renderer Velocity Context
 
*-----------------------+-------------------------------------------------------+
 | <<<alternator>>>      | = <<<$alternator>>>
 
*-----------------------+-------------------------------------------------------+
-| <<<context>>>         | (causes RuntimeException)
+| <<<context>>>         | = <<<$context>>>
 
*-----------------------+-------------------------------------------------------+
 | <<<convert>>>         | = <<<$convert>>>
 
*-----------------------+-------------------------------------------------------+
@@ -117,7 +130,7 @@ Doxia Site Renderer Velocity Context
 
*-----------------------+-------------------------------------------------------+
 | <<<loop>>>            | = <<<$loop>>>
 
*-----------------------+-------------------------------------------------------+
-| <<<link>>>            | (causes NullPointerException)
+| <<<link>>>            | = <<<$link>>>
 
*-----------------------+-------------------------------------------------------+
 | <<<math>>>            | = <<<$math>>>
 
*-----------------------+-------------------------------------------------------+


Reply via email to