A better way to generate word(docx) with the template, based on Apache POI. FreeMarker or Velocity generates new html pages or configuration files based on text templates and data. poi-tl is a Word template engine that generates new documents based on Word templates and data. The Word template has rich styles. Poi-tl will perfectly retain the styles in the template in the generated documents. You can also set styles for the tags. The styles of the tags will be applied to the replaced text, so you can focus on the template design. poi-tl is a "logic-less" template engine. There is no complicated control structure and variable assignment, only tags, some tags can be replaced with text, pictures, tables, etc., some tags will hide certain document content, while other tags will loop a series of document content.
Features
- Foreach Loop
- Highlight code
- Word Comments
- Bookmarks, anchors, hyperlinks
- Template nesting
- Custom functions (plug-ins)
- Markdown