Sublime Hugo Snippets
Installation instructions
Package Control: Install Package and look for Hugo Snippets
$ cd ~/Library/Application Support/Sublime Text 3/Packages/User
$ git clone [email protected]:regisphilibert/Sublime-Hugo-Snippets.git
$ cd ~/.config/sublime-text-3/Packages/User
$ git clone [email protected]:regisphilibert/Sublime-Hugo-Snippets.git
| Snippet | Tab Trigger | Output |
|---|---|---|
| Curlies | x | {{ }} |
| Dot | dot | {{ . }} |
| If | if | {{ if }} {{ end }} |
| If/Else | ife | {{ if }} {{ else }} {{ end }} |
| If/Else if | ifei | {{ if }} {{ else if }} {{ end }} |
| With | with | {{ with }} {{ end }} |
| With/Else | withe | {{ with }} {{ else }} {{ end }} |
| Range | range | {{ range }} {{ end }} |
| Partial | partial | {{ partial "" . }} |
| Block | block | {{ block "main" . }} {{ end }} |
| Block define | define | {{ define "block" }} {{ end }} |
| Variable | vars | {{ $var := what }} |
| Debug | debug | {{ printf "%#v" }} |
| Comment | comm | {{/* */}} |