Conflict on Template of Twig and Vue.js

后端 未结 10 2235
一向
一向 2020-12-02 16:27

I\'m doing a program using Slim 2 that uses Twig as my templating engine. so It uses the syntax {{ foo }} in php file. On the other hand, I\'m using vue.js, it

10条回答
  •  北海茫月
    2020-12-02 16:58

    Just a heads up. On Vue JS 2. The way of doing this is add an object to Vue.

    new Vue({
        el: '#app',
        delimiters: ['${', '}'],
    }
    

提交回复
热议问题