chore(vim): add some erb snippets

This commit is contained in:
Ade Attwood 2023-08-21 08:40:07 +01:00
parent 835d695ed0
commit 7e72f1f566
4 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,6 @@
# name: ERB echo tags
# key: phpe
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: eruby
# --
<%= $0 %>

View file

@ -0,0 +1,10 @@
# name: ERB if else block
# key: phpfie
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: eruby
# --
<% if $1 %>
$1
<% else %>
$0
<% end %>

View file

@ -0,0 +1,8 @@
# name: ERB if block
# key: phpfi
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: eruby
# --
<% if $1 %>
$0
<% end %>

View file

@ -0,0 +1,6 @@
# name: ERB tags
# key: php
# contributor: Ade Attwood <code@adeattwood.co.uk>
# filetypes: eruby
# --
<% $0 %>