使用Blade/Mustache模板混合Laravel和Vue.Js [英] Using Blade/Mustache templating mixing Laravel and Vue.Js
本文介绍了使用Blade/Mustache模板混合Laravel和Vue.Js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,我正在尝试同时使用 Laravel 和 VueJs 来构建应用程序,但是我只停留在一点.
So I'm trying to build an application with both Laravel and VueJs but I'm stuck at one point.
是否可以使用VueJ的胡须模板(这是 {{exemple}}
)而不会引发Laravel错误,因为laravel也像 {{$ exemple}}
?
Is it possible to use VueJs mustache templating (which is {{exemple}}
) without launching a Laravel error since laravel used it too like {{$exemple}}
?
推荐答案
我认为您可以使用Blade允许我们在以下情况下使用的 @ {{example}}
语法来做您想做的事情在Laravel内部使用JS框架.
I think you can do what you're after using the @{{ example }}
syntax that Blade allows us to use when using a JS framework inside Laravel.
希望这会有所帮助!:)
Hope this helps! :)
这篇关于使用Blade/Mustache模板混合Laravel和Vue.Js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文