Conflict on Template of Twig and Vue.js

后端 未结 10 2262
一向
一向 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 17:15

    I read in another similar question to do:

    {{"{{vue.js variable here}}"}} 
    

    to make it shorter. It works in SOME cases for me. But, thought you might like to see it anyway...

    I didn't yet succeed to get it to work in all areas of my code.

提交回复
热议问题