Mustache Syntax definitions and Snippets for for Sublime Text based on its CSS, HTML, JavaScript and JSON syntaxes.
The easiest way to install is using Package Control. It's listed as Mustache.
- Open
Command Paletteusing ctrl+shift+P or menu itemTools → Command Palette... - Choose
Package Control: Install Package - Find
Mustacheand hit Enter
- Download appropriate Mustache.sublime-package for your Sublime Text build.
- Copy it into Installed Packages directory
Note
To find Installed Packages...
- call Menu > Preferences > Browse Packages..
- Navigate to parent folder
You can clone this repository into your Sublime Text x/Packages
cd ~/Library/Application\ Support/Sublime\ Text/Packages/
git clone https://github.com/SublimeText/Mustache.gitcd ~/.config/sublime-text/Packages
git clone https://github.com/SublimeText/Mustache.gitcd "%APPDATA%\Sublime Text\Packages"
git clone https://github.com/SublimeText/Mustache.git| Name | Trigger | Result |
|---|---|---|
| Escaped Variable | var |
{{ variable }} |
| Unescaped Variable | let |
{{{ variable }}} |
| Comment | ! |
{{! comment }} |
| Section | if |
{{# variable }} [..] {{/ variable }} |
| Inverted Section | else |
{{^ variable }} [..] {{/ variable }} |
| Partial | inc |
{{> partial }} |



