Press "Enter" to skip to content

@verbatim directive in blade template of laravel

Many of you may not know about this.

Blade echo syntax {{ }} is also used in many JavaScript frameworks . Vue.js is prime example of it

We use @{{ }} symbols to prevent blade from parsing it which outputs the content stripping the @ symbol.

But there are cases, where we repeatedly use JavaScript echo which makes writing @ in front of every blade echos  tedious.

For example:

 

So, the solution here is to use another blade directive, a directive called @verbatim.

It totally neglects the blades echo directives inside of it.

 

9 Comments

  1. Sling TV
    Sling TV November 12, 2018

    Incredible quest there. What occurred after? Good luck!

  2. Your style is unique in comparison to other folks I have read
    stuff from. Thank you for posting when you have the opportunity, Guess I
    will just book mark this page.

  3. My brother suggested I would possibly like this blog.
    He was once entirely right. This post truly made my day.
    You can not believe just how much time I had spent for this info!
    Thank you!

  4. Hi there i am kavin, its my first occasion to commenting anywhere, when i read this post i thought i could
    also create comment due to this brilliant piece of writing.

  5. Sling TV
    Sling TV November 14, 2018

    What’s up, I check your blogs regularly. Your humoristic style is awesome, keep up the good work!

  6. Sling TV
    Sling TV November 15, 2018

    I am really impressed together with your writing talents and also with
    the structure for your weblog. Is that this a paid
    theme or did you customize it yourself? Anyway stay
    up the excellent high quality writing, it’s uncommon to look a great blog like this
    one nowadays..

  7. Magnificent beat ! I would like to apprentice whilst you
    amend your site, how could i subscribe for a blog
    web site? The account helped me a appropriate deal. I were a little bit acquainted of this your broadcast offered
    vibrant transparent concept

  8. Sling tv coupons and promo codes for november 2018
    Hey I know this is off topic but I was wondering if you
    knew of any widgets I could add to my blog that automatically tweet my
    newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was
    hoping maybe you would have some experience with something like this.
    Please let me know if you run into anything. I truly enjoy reading your
    blog and I look forward to your new updates. Sling tv coupons and promo codes for november 2018

Leave a Reply

Your email address will not be published.