html2docx icon indicating copy to clipboard operation
html2docx copied to clipboard

Add support for DocxTemplate fom docxtpl package

Open Zedstron opened this issue 2 years ago • 0 comments

Feature Request

So far now the package is excellent and doing great, i would like to request support for the document package called "docxtpl" a MS Word templating package which supports JINJA2 as in Django, but it only accepts plain Document class for conversion.

from docx import Document
from htmldocx import HtmlToDocx
from docxtpl import DocxTemplate

new_parser = HtmlToDocx()
doc = Document # this works
doc = DocxTemplate() #this did not worked, but it is supposed to
new_parser.add_html_to_document(html, doc)

This is the package link

Zedstron avatar Mar 05 '22 21:03 Zedstron