From 057a066f9c549e445fcbd519e7785db0bf16a380 Mon Sep 17 00:00:00 2001 From: George Lee Date: Mon, 10 Jun 2013 21:37:09 +0800 Subject: [PATCH] add if/ife snippets to eruby --- snippets/eruby.snippets | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/snippets/eruby.snippets b/snippets/eruby.snippets index 592e490..721116c 100644 --- a/snippets/eruby.snippets +++ b/snippets/eruby.snippets @@ -111,3 +111,13 @@ snippet slt <%= stylesheet_link_tag ${1::all}, :cache => ${2:true} %> snippet sslt <%= stylesheet_link_tag "${1}" %> +snippet if + <% if ${1} %> + ${2} + <% end %> +snippet ife + <% if ${1} %> + ${2} + <% else %> + ${3} + <% end %>