Folks, I am workin开发者_如何学Pythong on a freemarker template that needs to reproduce parts of the input XML tree.
I would love to have a macro that I could invoke as follows:
<@renderTree node=node namespace="ns"/>
Anyone have something like this handy?
Thanks.
-Raj
Freemarker has a special hash key for this: @@markup. So, my example above:
<@renderTree node=node namespace="ns"/>
Where variable "node" contains an XML node, will be written as:
${ node[ "@@markup" ] }
More info here: Freemarker Manual XML processing
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论