´¦ÓÚ·õ»¯×´Ì¬µÄÏîÄ¿²»Ò»¶¨ÊÇ·´Ó³ÁËÏîÄ¿´úÂëµÄÍêÕûÐÔ»òÎȶ¨ÐÔ£¬²»¹ýËüȷʵ±íÃ÷ÁËÏîÄ¿ÉÐδµÃµ½ Apache Èí¼þ»ù½ð»áµÄÈ«ÃæÈϿɡ£
²¿·Ö¸üÐÂÈçÏ£º
Changes on the FTL side
Added node?next_sibling and node?previous_sibling to move sideways in a node trees (see reference...). This works with XML DOM nodes, or with any custom TemplateNodeModelEx implementations.
Added new @@ keys to XML DOM models: @@next_sibling_element, @@previous_sibling_element. These get the sibling node if that's an element, with the extra that they silently skip any whitespace text and comment and processing instruction between them. (See more about @@ keys here...)
Bug fixed (FREEMARKER-42): ?first now works with FTL collections (things that can be listed but doesn't support getting items by index), not only with sequences. The practical importance of this is that ?first now always works on Java Set-s (which is useful forSet-s with well defined ordering), while earlier it has failed depending on the object_wrapper configuration setting.
ͨ¹ýÅäÖà Maven »ñÈ¡£º[code]
Èí¼þÏêÇ飺http://freemarker.org/docs/versions_2_3_26.html
ÏÂÔØµØÖ·£ºhttp://freemarker.org/freemarkerdownload.html
À´×Ô:¿ªÔ´ÖйúÉçÇø

