在webstorm中使用Jade for Meteor,模板template语法“+templateName”不能使用的解决方案
文章目录
用jade写meteor的模板比spacebar方便的多,找到了这款插件:
https://github.com/mquandalle/meteor-jade
自然是开开心心的用了起来。可是每当引用了template的时候,用了这个插件自定义的语法:+templateName
在server上编译都会莫名其妙的让整个页面空掉...
百思不得其解,最后发现原来是tab和空格来indent的问题...
打开settings,搜索jade,找到jade的codestyle,把tabsize和indent全都改为2
不要选中use tab character
搞定...
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论