Merge pull request #173 from crazymaster/master

Improve liquid snippet
This commit is contained in:
Shougo 2013-08-18 04:48:35 -07:00
commit 6784e02b58

View File

@ -77,12 +77,18 @@ snippet include
options word options word
{% include ${1:#:TARGET} %} {% include ${1:#:TARGET} %}
snippet block snippet output
abbr {{ }} abbr {{ }}
alias {{ alias {{
options word options word
{{ ${1:#:TARGET} }} {{ ${1:#:TARGET} }}
snippet filter
abbr {{ | }}
alias {{
options word
{{ ${1:#:TARGET} | ${2:#:filter} }}
# Jekyll enhancements # Jekyll enhancements
@ -105,3 +111,18 @@ snippet post_url
options word options word
{% post_url ${1:#:TARGET} %} {% post_url ${1:#:TARGET} %}
snippet gist
options word
{% gist `getreg('+')=='' ? '<\`0\`>' : getreg('+')` %}
snippet front-matter
abbr layout title category
alias ---
options head
---
layout: ${1}
title: ${2}
category: ${3}
---
${0}