abkrim's avatar
Level 13

How to write literal {{ mustache }} in blade

I needs write in blade page, a paragraph with literal text {{ mustache }}

... You can use {{ mustache }} vars

I've tried unscape with {{{{}}}} witgh \ but fails because blade render {{ }}

The're any way for this?

0 likes
7 replies
abkrim's avatar
Level 13

@bugsysha

I don't like parse a variable. I like render literal string {{ mustache }}

Error
Undefined constant "mustache" (View: /home/abkrim/Sites/mailer/resources/views/livewire/auth/template/create-template.blade.php)

Plantilla en formato HTML. Permite el uso de {!! {{ mustache }}  !!}  mustache variables ($user->name, $user->email...). La plantilla en forma HTML debe ser completa
bugsysha's avatar

@abkrim

{{ 'mustache' }}

But I don't see any reason why would you do that when you can write mustache in HTML.

abkrim's avatar
Level 13
Permite el uso de @{{  mustache }} variables

This work fine. A lot of thanks @sinnbeck

Other try it, and not work.

1 like
bugsysha's avatar

@abkrim oh, you were having issues with curly braces 🤦🏻‍♂️ 🤣

1 like

Please or to participate in this conversation.