neosnippet.vim/neosnippets/liquid.snip

129 lines
2.3 KiB
Plaintext
Raw Normal View History

2013-04-22 13:18:32 +00:00
snippet comment
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% comment %}${1:#:comment}{% endcomment %}
snippet raw
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% raw %}${1:#:TARGET}{% endraw %}
snippet if
abbr if endif
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% if ${1:#:condition} %}
${0:TARGET}
{% endif %}
snippet elseif
{% elseif ${1:#:condition} %}
${0:TARGET}
snippet ifelse
abbr if else endif
{% if ${1:#:condition} %}
${2:TARGET}
{% else %}
${3}
{% endif %}
snippet unless
abbr unless endunless
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% unless ${1:#:TARGET} %}
${0:TARGET}
{% endunless %}
snippet case
abbr case when endcase
{% case ${1:#:condition} %}
2013-04-23 08:09:26 +00:00
{% when ${2:#:TARGET} %}
2013-04-22 13:18:32 +00:00
${3}
{% endcase%}
snippet else
{% else %}
${1:TARGET}
snippet when
{% when ${1:#:TARGET} %}
${0}
snippet cycle
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% cycle ${1:#:TARGET} %}
snippet for
abbr for in endfor
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% for ${1:#:var} in ${2:#:list} %}
${0:TARGET}
{% endfor%}
snippet tablerow
abbr tablerow in endtablerow
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% tablerow ${1:#:var} in ${2:#:list} %}
${0:TARGET}
{% endtablerow %}
snippet assign
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% assign ${1:#:var} = ${2:#:value} %}
snippet capture
2013-05-20 11:32:10 +00:00
options word
2013-04-23 08:09:26 +00:00
{% capture ${1:#:var} %}${2:#:TARGET}{% endcapture %}
2013-04-22 13:18:32 +00:00
snippet include
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% include ${1:#:TARGET} %}
2013-08-16 16:55:50 +00:00
snippet output
2013-04-22 13:18:32 +00:00
abbr {{ }}
alias {{
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{{ ${1:#:TARGET} }}
2013-08-16 16:55:50 +00:00
snippet filter
abbr {{ | }}
alias {{
options word
{{ ${1:#:TARGET} | ${2:#:filter} }}
2013-04-22 13:18:32 +00:00
# Jekyll enhancements
snippet highlight
alias hl
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% highlight ${1:#:TARGET} %}
${2:code}
{% endhighlight %}
snippet highlight_line
abbr Line number
alias hl_l
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% highlight ${1:#:TARGET} linenos %}
${2:code}
{% endhighlight %}
snippet post_url
2013-05-20 11:32:10 +00:00
options word
2013-04-22 13:18:32 +00:00
{% post_url ${1:#:TARGET} %}
2013-08-16 16:55:50 +00:00
snippet gist
options word
2013-08-17 06:19:48 +00:00
{% gist `getreg('+')=='' ? '<\`0\`>' : getreg('+')` %}
2013-08-17 06:34:56 +00:00
snippet front-matter
2013-08-17 06:19:48 +00:00
abbr layout title category
alias ---
options head
---
layout: ${1}
title: ${2}
category: ${3}
---
${0}
2013-08-16 16:55:50 +00:00