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
1 changed files with 22 additions and 1 deletions

View File

@ -77,12 +77,18 @@ snippet include
options word
{% include ${1:#:TARGET} %}
snippet block
snippet output
abbr {{ }}
alias {{
options word
{{ ${1:#:TARGET} }}
snippet filter
abbr {{ | }}
alias {{
options word
{{ ${1:#:TARGET} | ${2:#:filter} }}
# Jekyll enhancements
@ -105,3 +111,18 @@ snippet post_url
options word
{% 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}