python-docx-template/tests/merge_paragraph.py
2024-07-21 16:10:44 +02:00

18 lines
274 B
Python

# -*- coding: utf-8 -*-
"""
Created : 2015-03-12
@author: Eric Lapouyade
"""
from docxtpl import DocxTemplate
tpl = DocxTemplate("templates/merge_paragraph_tpl.docx")
context = {
"living_in_town": True,
}
tpl.render(context)
tpl.save("output/merge_paragraph.docx")