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 %>