pug与stylus虽然看起来写起来都很简洁,然而由于像sublime text这样的编辑器已经对html自动补全支持得很好了, pug和stylus在还没有自动补全的时候, 书写效率未必比原生html和css更快

pug示例:

div.className1.className2(style='font-size:37px') test ok!

stylus示例

.className1
    color: green
.className2
    background-color: red

标签: none 阅读量: 869

添加新评论