Packages

A WIP Elixir(script) framework

Current section

Files

Jump to
griffin lib hello.ex
Raw

lib/hello.ex

defmodule HelloGriffin do
def init(default_opts) do
IO.puts "starting up Helloplug..."
default_opts
end
def call(conn, _opts) do
IO.puts "saying hello!"
Plug.Conn.send_resp(conn, 200, "Hello, world!")
end
end