mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-12 03:20:23 +08:00
add f.UseTemplate
This commit is contained in:
7
docx.go
7
docx.go
@@ -124,3 +124,10 @@ func (f *Docx) Read(p []byte) (n int, err error) {
|
||||
f.isbufempty = false
|
||||
return f.buf.Read(p)
|
||||
}
|
||||
|
||||
// UseTemplate will replace template files
|
||||
func (f *Docx) UseTemplate(template string, tmpfslst []string, tmplfs fs.FS) {
|
||||
f.template = template
|
||||
f.tmplfs = tmplfs
|
||||
f.tmpfslst = tmpfslst
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user