commit
4501b1d842
@ -17,7 +17,7 @@ Usage::
|
|||||||
from docxtpl import DocxTemplate
|
from docxtpl import DocxTemplate
|
||||||
|
|
||||||
doc = DocxTemplate("my_word_template.docx")
|
doc = DocxTemplate("my_word_template.docx")
|
||||||
context = { 'company_name' : 'World company" }
|
context = { 'company_name' : "World company" }
|
||||||
doc.render(context)
|
doc.render(context)
|
||||||
doc.save("generated_doc.docx")
|
doc.save("generated_doc.docx")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user