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

Suppress variable substitutions #67

Open
LucVK opened this issue Dec 20, 2024 · 1 comment
Open

Suppress variable substitutions #67

LucVK opened this issue Dec 20, 2024 · 1 comment

Comments

@LucVK
Copy link

LucVK commented Dec 20, 2024

Is it possible to suppress the substitution of template variables using the same syntax as used by the blade engine?
@{{ $name }}
This is needed when I want to pass mail personalisations to an provider like MailerSend.

Br,
Luc

@LucVK
Copy link
Author

LucVK commented Dec 20, 2024

I made a workaround by replacing '@{{' by '{-' in the template and overriding buildView in my mailable where after calling the parent buildView I replace the '{' with '{{' (and also for the closing brackets)

This works but its a terrible hack :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant