Fixed liquid snippets.
This commit is contained in:
parent
3c9c731722
commit
12bf6b429d
@ -1,11 +1,14 @@
|
|||||||
snippet comment
|
snippet comment
|
||||||
|
options word
|
||||||
{% comment %}${1:#:comment}{% endcomment %}
|
{% comment %}${1:#:comment}{% endcomment %}
|
||||||
|
|
||||||
snippet raw
|
snippet raw
|
||||||
|
options word
|
||||||
{% raw %}${1:#:TARGET}{% endraw %}
|
{% raw %}${1:#:TARGET}{% endraw %}
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
abbr if endif
|
abbr if endif
|
||||||
|
options word
|
||||||
{% if ${1:#:condition} %}
|
{% if ${1:#:condition} %}
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -24,6 +27,7 @@ abbr if else endif
|
|||||||
|
|
||||||
snippet unless
|
snippet unless
|
||||||
abbr unless endunless
|
abbr unless endunless
|
||||||
|
options word
|
||||||
{% unless ${1:#:TARGET} %}
|
{% unless ${1:#:TARGET} %}
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
@ -44,32 +48,39 @@ snippet when
|
|||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet cycle
|
snippet cycle
|
||||||
|
options word
|
||||||
{% cycle ${1:#:TARGET} %}
|
{% cycle ${1:#:TARGET} %}
|
||||||
|
|
||||||
snippet for
|
snippet for
|
||||||
abbr for in endfor
|
abbr for in endfor
|
||||||
|
options word
|
||||||
{% for ${1:#:var} in ${2:#:list} %}
|
{% for ${1:#:var} in ${2:#:list} %}
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
{% endfor%}
|
{% endfor%}
|
||||||
|
|
||||||
snippet tablerow
|
snippet tablerow
|
||||||
abbr tablerow in endtablerow
|
abbr tablerow in endtablerow
|
||||||
|
options word
|
||||||
{% tablerow ${1:#:var} in ${2:#:list} %}
|
{% tablerow ${1:#:var} in ${2:#:list} %}
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
{% endtablerow %}
|
{% endtablerow %}
|
||||||
|
|
||||||
snippet assign
|
snippet assign
|
||||||
|
options word
|
||||||
{% assign ${1:#:var} = ${2:#:value} %}
|
{% assign ${1:#:var} = ${2:#:value} %}
|
||||||
|
|
||||||
snippet capture
|
snippet capture
|
||||||
|
options word
|
||||||
{% capture ${1:#:var} %}${2:#:TARGET}{% endcapture %}
|
{% capture ${1:#:var} %}${2:#:TARGET}{% endcapture %}
|
||||||
|
|
||||||
snippet include
|
snippet include
|
||||||
|
options word
|
||||||
{% include ${1:#:TARGET} %}
|
{% include ${1:#:TARGET} %}
|
||||||
|
|
||||||
snippet block
|
snippet block
|
||||||
abbr {{ }}
|
abbr {{ }}
|
||||||
alias {{
|
alias {{
|
||||||
|
options word
|
||||||
{{ ${1:#:TARGET} }}
|
{{ ${1:#:TARGET} }}
|
||||||
|
|
||||||
|
|
||||||
@ -77,6 +88,7 @@ alias {{
|
|||||||
|
|
||||||
snippet highlight
|
snippet highlight
|
||||||
alias hl
|
alias hl
|
||||||
|
options word
|
||||||
{% highlight ${1:#:TARGET} %}
|
{% highlight ${1:#:TARGET} %}
|
||||||
${2:code}
|
${2:code}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
@ -84,10 +96,12 @@ alias hl
|
|||||||
snippet highlight_line
|
snippet highlight_line
|
||||||
abbr Line number
|
abbr Line number
|
||||||
alias hl_l
|
alias hl_l
|
||||||
|
options word
|
||||||
{% highlight ${1:#:TARGET} linenos %}
|
{% highlight ${1:#:TARGET} linenos %}
|
||||||
${2:code}
|
${2:code}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
snippet post_url
|
snippet post_url
|
||||||
|
options word
|
||||||
{% post_url ${1:#:TARGET} %}
|
{% post_url ${1:#:TARGET} %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user