View Source Tempel.Persistence (Tempel v0.1.1)

Link to this section Summary

Link to this section Functions

Link to this function

delete(opts, files_variants)

View Source
@spec delete(
  opts :: map(),
  files ::
    [Tempel.Gate.saved_variant()] | [String.t()] | Tempel.Gate.saved_variant()
) :: :ok | {:error, reason :: any()}
@spec init(map()) :: map()
Link to this function

save(opts, files_variants)

View Source
@spec save(opts :: map(), [Tempel.Gate.raw_variant()] | Tempel.Gate.raw_variant()) ::
  {:error, reason :: any()} | {:ok, Tempel.Gate.saved_variant()}
Link to this function

to_url(opts, files_vairants)

View Source
@spec to_url(
  opts :: map(),
  files ::
    [Tempel.Gate.saved_variant()] | [String.t()] | Tempel.Gate.saved_variant()
) ::
  [String.t()]
  | %{required(name :: String.t() | atom()) => url :: String.t()}
  | [%{required(name :: String.t() | atom()) => url :: String.t()}]