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 Palette
using ctrl+shift+P or menu itemTools → Command Palette...
- Choose
Package Control: Install Package
- Find
Mustache
and 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.git
cd ~/.config/sublime-text/Packages
git clone https://github.com/SublimeText/Mustache.git
cd "%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 }} |