Hi guys!
No idea what took me so long to write those… Life changer!
Snippet
Tab Trigger
Output
Curlies
x
{{ }}
Dot
dot
{{ . }}
If
if
{{ if }} {{ end }}
If/Else
ife
{{ if }} {{ else }} {{ 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 }}
PackageControll PR is pending, in the mean time you can just drop them anywhere you want in /Users/whoever/Library/Application Support/Sublime Text 3/Packages
I am using them quite a lot in my templates for notes about “how” and “why” and “what happens here”, because HTML comments are basically garbage in the final website I see a lot of themes out there that use html comment tags but they are printed in the resulting html which is more or less useless baggage. in my humble opinion.
I just added .Scratch options to your repo as well. I also propose shortening “partial” to something like “xpar” since “partial” is being used by gohtml and tabbing doesnt seamlessly work