基于FreeMarker模板引擎的文档自动生成软件设计  被引量:4

Design of Automatic Document Generation Software Based on FreeMarker Template Engine

在线阅读下载全文

作  者:梁嘉怡 卢雅敏 赵峻 LIANG Jiayi;LU Yamin;ZHAO Jun(Shenzhen Power Supply Bureau Co.,Ltd.,Shenzhen Guangdong 518000,China)

机构地区:[1]深圳供电局有限公司,广东深圳518000

出  处:《信息与电脑》2022年第13期100-102,共3页Information & Computer

摘  要:针对传统软件在文档自动生成实际应用存在耗时较长的问题,提出基于FreeMarker模板引擎的文档自动生成软件设计。首先,利用摘要、关键词、正文和结论 4个模板生成模板文件,将文件上传到数据库中;其次,按照文档生成需求,利用FreeMarker模板引擎在模板文档数据库中进行检索;再次,对检索到的文件进行标记,生成超文本文件;最后,将超文本文件所有节点属性替换成FreeMarker模板语言(FreeMarker Template Language,FTL),生成FTL文件流,从而实现文档自动生成。实验结果表明,设计软件生成文档所用的时间短于传统软件,具有良好的应用前景。Aiming at the problem of time-consuming in the practical application of traditional software in automatic document generation,a software design of automatic document generation based on FreeMarker template engine is proposed.Firstly,the template file is generated by using the four templates of summary,keyword,text and conclusion,and the file is uploaded to the database.Secondly,according to the document generation requirements,the FreeMarker template engine is used to search in the template document database.Thirdly,mark the retrieved file,generate the hypertext file.Finally,replace all node attributes of hypertext files to generate FreeMarker Template Language(FTL)file streams,so as to realize automatic document generation.The experimental results show that the design software takes less time to generate documents than the traditional software,which has a good application prospect.

关 键 词:FreeMarker模板引擎 文档 自动生成 

分 类 号:TP391.1[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象