View Source Dragon.Template.Read (dragon v1.2.3)

Reading data from a dragon template, considering separators.

Link to this section Summary

Link to this section Functions

Link to this function

read_template_body(path, offset \\ 0)

View Source
@spec read_template_body(file :: String.t(), offset :: integer()) ::
  {:ok, body :: String.t()} | {:error, reason :: String.t() | atom()}
Link to this function

read_template_header(path)

View Source
@spec read_template_header(file :: String.t()) ::
  {:ok, header :: map(), path :: String.t(), end_of_header_offset :: integer(),
   lines_in_header :: integer()}
  | {:error, reason :: String.t() | atom()}