Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks
xJuvi opened this issue Jul 25, 2024 · 0 comments
Open
2 tasks

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

xJuvi opened this issue Jul 25, 2024 · 0 comments

Comments

@xJuvi
Copy link

xJuvi commented Jul 25, 2024

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)
@Progi1984 Progi1984 added this to the 1.3.0 milestone Aug 15, 2024
@Progi1984 Progi1984 modified the milestones: 1.3.0, 1.3.1 Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants