ºìÁªLinuxÃÅ»§
Linux°ïÖú

Apache FreeMarker 2.3.26-incubating£¬JavaÄ£°åÒýÇæ

·¢²¼Ê±¼ä:2017-03-27 09:07:56À´Ô´:ºìÁª×÷Õß:baihuo
Apache FreeMarker 2.3.26-incubating ·¢²¼ÁË£¬ÕâÊÇÒ»¸öÎȶ¨°æ£¬¼ÓÉÏ "incubating" ÊÇÒòΪ Apache Èí¼þ»ù½ð»áµÄÒªÇ󣨷õ»¯ÖеÄÏîÄ¿£©£¬Ö±µ½¸ÃÏîÄ¿³ÉΪÍêÈ«½ÓÊÜ£¨±ÏÒµµÄ£©Apache ÏîĿΪֹ¡£¹ØÓÚ FreeMaker ¼ÓÈë Apache ·õ»¯µÄÐÂÎÅ¡£

´¦ÓÚ·õ»¯×´Ì¬µÄÏîÄ¿²»Ò»¶¨ÊÇ·´Ó³ÁËÏîÄ¿´úÂëµÄÍêÕûÐÔ»òÎȶ¨ÐÔ£¬²»¹ýËüȷʵ±íÃ÷ÁËÏîÄ¿ÉÐδµÃµ½ 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]
org.freemarker
freemarker
2.3.26-incubating
[/code]FreeMarker ÊÇÒ»¸öÄ£°åÒýÇæ£¬Ò»¸ö»ùÓÚÄ£°åÉú³ÉÎı¾Êä³öµÄͨÓù¤¾ß£¬Ê¹Óô¿ Java ±àд¡£FreeMarker ±»Éè¼ÆÓÃÀ´Éú³É HTML Web Ò³Ãæ£¬ÌرðÊÇ»ùÓÚ MVC ģʽµÄÓ¦ÓóÌÐò¡£

Èí¼þÏêÇ飺http://freemarker.org/docs/versions_2_3_26.html

ÏÂÔØµØÖ·£ºhttp://freemarker.org/freemarkerdownload.html

À´×Ô:¿ªÔ´ÖйúÉçÇø
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ