Sublime Hugo Snippets
Installation instructions
Paketkontrolle: Paket installieren und nach Hugo Snippets suchen
$ 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
| Ausschnitt | Tab-Trigger | Ausgabe |
|---|---|---|
| Locken | X | {{ }} |
| Punkt | Punkt | {{ . }} |
| Wenn | Wenn | {{ if }} {{ end }} |
| Wenn/Sonst | ife | {{ if }} {{ else }} {{ end }} |
| Wenn/Sonst wenn | ifei | {{ if }} {{ else if }} {{ end }} |
| Mit | mit | {{ with }} {{ end }} |
| Mit/Sonst | mit | {{ with }} {{ else }} {{ end }} |
| Reichweite | Reichweite | {{ range }} {{ end }} |
| Teilweise | teilweise | {{ partial "" . }} |
| Block | Block | {{ block "main" . }} {{ end }} |
| Blockdefinition | definieren | {{ define "block" }} {{ end }} |
| Variable | Vars | {{ $var := what }} |
| Debuggen | debuggen | {{ printf "%#v" }} |
| Kommentar | Komm | {{/* */}} |