JavaScript 哪位大神知道怎样在 js 中使用 jade 渲染 html?

saxer · August 16, 2015 · Last by kisnows replied at September 20, 2015 · 2271 hits

了解了下 jade,初次见面便给了我深深的印象,极简的语法简直让我欲罢不能。。。。但是……没有找到一个很好的例子,怎样在 js 前端使用 jade 来取渲染 html,求指点!!!!!

https://github.com/weepy/jade-browser

问题是这种模板写在页面里很难看啊,除非写成单独的文件,每次都用 ajax 取

最终交付后端总不能是 jade 吧,还是得 html。无解的问题,我们现在的做法,是自己用 jade 开发,最后 gulp 编译成 html。

You need to Sign in before reply, if you don't have an account, please Sign up first.