https://docxtemplater.com/docs/installation/#browser-js-files
Hi, I am working on the latest release (also tried with 3.31.2 and 3.9.9 but when I define the following variables:
// Render the document (Replace {first_name} by John, {last_name} by Doe, ...)
doc.render({
test : "yes",
});
and I have the following Word template:
{#test == "yes"}
They are many users.
{/test == "yes"}
it does not work, it does not render anything. Already tried to:
- replace the test string with numbers, not working;
- use any type of double and single quote in Word, not working.
Only the boolean condition works.
Is this a bug? Anyone can help please?
Thanks, Mauro