PHPWord
PHPWord copied to clipboard
Set the variable syntax customizable
Is your feature request related to a problem? Please describe.
We implemented PhpWord for variables detection & replacement and it works well :ok_hand:
The problem is {{ }}
variable syntax was needed in our case, but PhpWord actually used syntax ${ }
.
So to fit our needs we did a monkey patch with a TemplateProcessorDecorator
, but it's not a strong way to go...
Describe the solution you'd like
A solution would be to set the variable syntax customizable via the configuration.
Describe alternatives you've considered
An other solution would be to add the syntax to use as a param of some methods, such as getVariables()
FYI
If the issue is accepted, my team and I will be available to propose a merge-request :+1:
good idea
That would be very usefull !