在freemarker的模板文件中调用自定义的方法--http://hi.baidu.com/wadise/blog/item/2467d8339985ed44ad4b5fb3.html
freemarker现有的一些内置函数不能满足我们的需求,这些内置函数包括:chunk, is_date, last, root, j_string, contains, is_hash, long, float, ends_with, namespace, matches, time, values, seq_last_index_of, uncap_first, byte, substring
复制链接