python-docx-template/tests/merge_paragraph.py
2020-04-16 23:06:57 +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')