Laravel - Blade Templates - Blade And Javascript Frameworks
Since many JavaScript frameworks also use "curly" braces to indicate a given expression should be displayed in the browser, you may use the @
symbol to inform the Blade rendering engine an expression should remain untouched. For example:
Laravel
Hello, @{{ name }}.
In this example, the @
symbol will be removed by Blade; however, {{ name }}
expression will remain untouched by the Blade engine, allowing it to be rendered by your JavaScript framework.
The @
symbol may also be used to escape Blade directives:
{{ -- Blade template -- }}
@@if()
@if()