Skip to content

Changing Macro chars to {{ VAR }} doesn't work #2636

Open
@xJuvi

Description

@xJuvi

Describe the bug and add attachments

I tried to change the macro chars to the following:
Opening: {{
Closing: }}
The syntax is acording to twig because i want to use the same variables. It is easier for our key users to understand templates.

I found this solution: #2412 (comment)
This doesn't work. So i tried to change the macro chars directly in the via compower downloaded source code. Nothing happens. The template processor can't handle {{ VAR }} - if i change this to any other combination it works.

Expected behavior

The Chars can be changed to {{ }}

Steps to reproduce

No code example required because i tried this also with changing the default variables in the TemplateProcessor.php.

PHPWord version(s) where the bug happened

1.2.0

PHP version(s) where the bug happened

8.0

Priority

  • I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
    I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Progi1984@xJuvi

        Issue actions

          Changing Macro chars to {{ VAR }} doesn't work · Issue #2636 · PHPOffice/PHPWord