Skip to content

Commit 74a5e02

Browse files
committed
Adding an elixir-mode snippet for phoenix liveview mount function.
1 parent f1907ed commit 74a5e02

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

snippets/elixir-mode/phx-lv-mount

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: snippet -*-
2+
# name: phx-lv-mount
3+
# key: phx-lv-mount
4+
# --
5+
@impl true
6+
def mount(_params, _session, socket) do
7+
$0
8+
{:ok, socket}
9+
end

0 commit comments

Comments
 (0)