We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I pass a variable to the view content I get this issue
public function content() { return new Content( view: $this->mjml('test')->buildMjmlView()['html'], with: [ 'abc' => 'Dummy Sentence' ] ); }
The text was updated successfully, but these errors were encountered:
I have the same problem, any ideas?
Sorry, something went wrong.
Maybe it's been solved but for future notice I use it like this
public function content() { return new Content( view: $this->mjml('emails.reservation', [ 'name' => 'John Doe', 'price' => '1000' ]) ->buildMjmlView()['html'], ); }
and the view
<mjml> <mj-body > <mj-column> <mj-text>{{$name}}</mj-text> <mj-text>{{$price}}</mj-text> </mj-column> </mj-body> </mjml>
No branches or pull requests
When I pass a variable to the view content I get this issue
The text was updated successfully, but these errors were encountered: