sloane.sh/lib/sloane_sh.ex
2024-02-16 22:28:13 -05:00

26 lines
420 B
Elixir

defmodule SloaneSH do
@moduledoc """
Sloane's personal static site generator powering [sloane.sh](https://sloane.sh).
"""
alias SloaneSH.Build
alias SloaneSH.Watch
alias SloaneSH.Context
def build(_opts \\ []) do
context()
|> Build.run()
:ok
end
def watch(_opts \\ []) do
context()
|> Watch.start_link()
end
def context do
Context.new()
|> Context.init()
end
end