Skip to content

Set the variable syntax customizable #2251

Open
@FlorianBaba

Description

@FlorianBaba

Is your feature request related to a problem? Please describe.

We implemented PhpWord for variables detection & replacement and it works well 👌

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 👍

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions