Summary
I have implemented a variable-based template selection system in packages/handlers/handle-generate-docx.js. Currently, it is set to original, which dynamically loads the core logic from packages/scripts/docx/template/original/docx-main.js and applies its corresponding styles.
Basic Examples
This implementation allows for various layout styles, such as:
- Wrapping all content within a table structure.
- Specialized "Report/Raport" formatting.
- Custom layouts tailored to specific document types.
Motivation
The current DOCX output is quite basic and lacks visual hierarchy. By adopting this modular template feature, we can provide a much better user experience with more professional and diverse document presentation options.
Summary
I have implemented a variable-based template selection system in
packages/handlers/handle-generate-docx.js. Currently, it is set tooriginal, which dynamically loads the core logic frompackages/scripts/docx/template/original/docx-main.jsand applies its corresponding styles.Basic Examples
This implementation allows for various layout styles, such as:
Motivation
The current DOCX output is quite basic and lacks visual hierarchy. By adopting this modular template feature, we can provide a much better user experience with more professional and diverse document presentation options.