Skip to content

Instantly share code, notes, and snippets.

@bettio
Created March 7, 2020 22:54
Show Gist options
  • Save bettio/e9141b4322908dba299b4f55c5ad81c6 to your computer and use it in GitHub Desktop.
Save bettio/e9141b4322908dba299b4f55c5ad81c6 to your computer and use it in GitHub Desktop.
Elixir morse encoder example - step 7
<html>
+ <head>
+ <link rel="stylesheet" href="/milligram.min.css">
+ </head>
<body>
+ def handle_req('GET', ['milligram.min.css'], conn) do
+ :http_server.reply(200, :atomvm.read_priv(:morse_encoder, 'milligram.min.css'), conn)
+ end
+
def handle_req(method, path, conn) do
:erlang.display({method, path})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment