Iona.template
You're seeing just the function
template
, go back to Iona module for more information.
Specs
template(assigns :: Keyword.t() | map(), criteria :: eex_tex_t()) :: {:ok, Iona.Template.t()} | {:error, term()}
template(assigns :: Keyword.t() | map(), criteria :: template_opts()) :: {:ok, Iona.Template.t()} | {:error, term()}
Fill in a template with assignments, with TeX escaping support
{:ok, template} = [title: "An Article", author: "Bruce Williams"]
|> Iona.template(path: "/path/to/article.tex")
Iona.write(template, "/path/to/article.pdf")