sublime HTMLMustache Mustache 插件安装使用

用sublime 来编辑mustache的

安装插件

打开插件中心,选择install ,输入mustache,安装

 

SublimeHTMLMustache-master

怎么用?

Set your file’s syntax to “HTML Mustache” and you’ll get the highlighting.

You can then use the following snippets:

Trigger                           Action
mc (‘Mustache Comment’) {{! comment }}
mv (‘Mustache Variable’) {{ variable }}
mvs (‘Mustache Variable (Safe)’) {{& variable }}
mp (‘Mustache Partial’) {{> partial }}
mi (‘Mustache If’) {{# variable }}what_to_do{{/ variable }}
ml (‘Mustache Loop’) like an ‘if’ but with new lines
mn (‘Mustache Not’) {{^ variable }}what_to_do_if_not{{/ variable }}
mnb (‘Mustache Not Block’) like a ‘not’ but with new lines
mie (‘Mustache If/Else’) Double if-not construct spread over lines 

版权来自:  https://github.com/adamchainz/SublimeHTMLMustache

去打赏

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

[支付宝] 扫描二维码打赏

发表评论