Closed bacps closed 4 months ago
Hello @bacps ,
I understand, this happens because {=
is reserved for changing the delimiters.
https://docxtemplater.com/docs/tag-types/#set-delimiter
So [={{ }}=] will change the delimiter from "[" and "]" to "{{" and "}}".
I have just released a new version, 3.48.0
With this version, you can disable completely this special behavior of the "=" string, you can use it in your code like this :
const doc = new Docxtemplater(zip, {
syntax: {
changeDelimiterPrefix: null,
},
});
Environment
How to reproduce my problem :
I am getting the error
New Delimiters cannot be parsed
when using as delimiters[]
.My template is the following : generated.docx
How to replicate :
By using your online demo: https://docxtemplater.com/demo/#/view/simple
Uploaded the docx shared and in advanced options change the
Delimiters
to be[user]
instead.I would expect it to :
New Delimiters cannot be parsed
when the value between delimiters is=
.