Add snippets
This commit is contained in:
parent
706479fa17
commit
20b7df9d0c
4
snippets/elixir/he
Normal file
4
snippets/elixir/he
Normal file
@ -0,0 +1,4 @@
|
||||
def handle_event("{event}", {map}, socket) do
|
||||
{body}
|
||||
{:noreply, socket}
|
||||
end
|
4
snippets/elixir/hi
Normal file
4
snippets/elixir/hi
Normal file
@ -0,0 +1,4 @@
|
||||
def handle_info("{info}", {map}, socket) do
|
||||
{body}
|
||||
{:noreply, socket}
|
||||
end
|
4
snippets/elixir/hp
Normal file
4
snippets/elixir/hp
Normal file
@ -0,0 +1,4 @@
|
||||
def handle_params("{param}", {map}, socket) do
|
||||
{body}
|
||||
{:noreply, socket}
|
||||
end
|
@ -1,5 +1,5 @@
|
||||
defmodule {Package}.{Name}Live do
|
||||
use {Package}
|
||||
use {Package}, :live_view
|
||||
@impl true
|
||||
|
||||
def mount(_params, _session, socket) do
|
||||
|
Loading…
Reference in New Issue
Block a user