Add snippets

This commit is contained in:
Austen Adler 2020-07-28 00:12:58 -04:00
parent 706479fa17
commit 20b7df9d0c
4 changed files with 13 additions and 1 deletions

4
snippets/elixir/he Normal file
View File

@ -0,0 +1,4 @@
def handle_event("{event}", {map}, socket) do
{body}
{:noreply, socket}
end

4
snippets/elixir/hi Normal file
View File

@ -0,0 +1,4 @@
def handle_info("{info}", {map}, socket) do
{body}
{:noreply, socket}
end

4
snippets/elixir/hp Normal file
View File

@ -0,0 +1,4 @@
def handle_params("{param}", {map}, socket) do
{body}
{:noreply, socket}
end

View File

@ -1,5 +1,5 @@
defmodule {Package}.{Name}Live do defmodule {Package}.{Name}Live do
use {Package} use {Package}, :live_view
@impl true @impl true
def mount(_params, _session, socket) do def mount(_params, _session, socket) do