easy-template-x
easy-template-x copied to clipboard
Loop start in headers and closes in body
Hello,
I'm wondering if it's possible to utilize this library to initiate a tag in the header and conclude it in the footer/body. To provide context, in the attached docx file, I am initiating the "licenses" tag in the header and concluding it in the footer, all while attempting to fill information within the body.
The purpose behind this approach is related to batch report printing. Specifically, certain licenses in the array extend across multiple pages. By placing the license number in the header, we aim to associate them together when a license spans multiple pages.
{
"licenses": [
{
"license_number": "1234",
"license_information": "This is a license"
},
{
"license_number": "5678",
"license_information": "This is another license"
},
{
"license_number": "91011",
"license_information": "This is a third license"
}
]
}
Hi,
So I looked into it. It would require a little work but it's possible. However, I don't think I'll be getting to this very soon. If you (or anyone else) is interested in implementing this, PRs are always welcome :)
Here are some relevant sources for future reference: