Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions snippets/elixir-mode/phx-lv-handle-event
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: phx-lv-handle-event
# key: phx-lv-handle-event
# --
@impl true
def handle_event("$1", _params, socket) do
$0
{:noreply, socket}
end
9 changes: 9 additions & 0 deletions snippets/elixir-mode/phx-lv-handle-info
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: phx-lv-handle-info
# key: phx-lv-handle-info
# --
@impl true
def handle_info(msg, socket) do
$0
{:noreply, socket}
end
9 changes: 9 additions & 0 deletions snippets/elixir-mode/phx-lv-handle-params
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: phx-lv-handle-params
# key: phx-lv-handle-params
# --
@impl true
def handle_params(params, _uri, socket) do
$0
{:noreply, socket}
end
9 changes: 9 additions & 0 deletions snippets/elixir-mode/phx-lv-mount
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: phx-lv-mount
# key: phx-lv-mount
# --
@impl true
def mount(_params, _session, socket) do
$0
{:ok, socket}
end
10 changes: 10 additions & 0 deletions snippets/elixir-mode/phx-lv-render
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: phx-lv-render
# key: phx-lv-render
# --
@impl true
def render(assigns) do
~H"""
$0
"""
end
Loading