S
S
sunnyfox2016-03-07 13:47:35
Twig
sunnyfox, 2016-03-07 13:47:35

How to add twig tags directly to xml structure of docx file?

The problem is this: you need to multiply a table row in a docx document using the twig template engine loop. I'm trying to insert {% for ... %} right between the xml tags, before the required w: tr. If you change document.xml and put it back into the docx archive, then the template works, but with any editing and saving of the file, LibreOffice gets rid of the "extra", that is, it removes the twig tags. Maybe there is some kind of "invisible" xml tag that can be used to frame Twig tags so that they do not disappear and do not violate the table structure?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question