coolair
V2EX  ›  问与答

保持 Flask 使用 Jinja2 生成模板的方式,如何使用 Element UI 这种基于 Vue.js 的前端框架?

  •  
  •   coolair · Oct 9, 2018 · 3168 views
    This topic created in 2811 days ago, the information mentioned may be changed or developed.
    如果能给个教程或者项目示例那就太感谢啦。
    4 replies    2018-10-09 13:40:30 +08:00
    catoncat
        1
    catoncat  
       Oct 9, 2018   ❤️ 1
    catoncat
        2
    catoncat  
       Oct 9, 2018   ❤️ 1
    项目例子的话 github 搜一下相关代码就可以找到了
    https://github.com/search?l=PHP&q=https%3A%2F%2Funpkg.com%2Felement-ui%2Flib%2Findex.js&type=Code
    比如这个 php 的项目 https://github.com/EvonDu/yii2-vue-adminlte/blob/master/src/template/views/_form.php ,跟你要的场景应该一致吧。善用搜索。
    catoncat
        3
    catoncat  
       Oct 9, 2018   ❤️ 1
    模板里面变量分隔符的问题可以看这个: https://stackoverflow.com/questions/41082626/how-to-render-by-vue-instead-of-jinja
    catoncat
        4
    catoncat  
       Oct 9, 2018   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2397 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:54 · PVG 23:54 · LAX 08:54 · JFK 11:54
    ♥ Do have faith in what you're doing.