ElixirLatex.Job (elixir_latex v0.2.0)

Link to this section Summary

Link to this section Types

Specs

assigns() :: %{optional(atom()) => any()}
Link to this type

attachments()

Specs

attachments() :: %{optional(atom() | binary()) => iodata()}

Specs

body() :: iodata() | nil

Specs

layout() :: {atom(), binary() | atom()} | false

Specs

renderer() :: binary() | :xelatex | :latex | :pdflatex

Specs

t() :: %ElixirLatex.Job{
  assigns: assigns(),
  attachments: attachments(),
  body: body(),
  job_name: binary() | nil,
  layout: layout(),
  renderer: renderer(),
  view: view()
}

Specs

view() :: atom() | false

Link to this section Functions

Link to this function

assign(job, key, value)

Specs

assign(t(), atom(), term()) :: t()
Link to this function

put_attachment(job, key, value)

Specs

put_attachment(t(), atom() | binary(), iodata()) :: t()
Link to this function

put_body(job, body)

Specs

put_body(t(), body()) :: t()
Link to this function

put_data_url_attachment(job, key, data_url)

Specs

put_data_url_attachment(t(), atom() | binary(), binary()) :: t() | :error
Link to this function

put_layout(job, layout)

Specs

put_layout(t(), layout()) :: t()
Link to this function

put_view(job, view)

Specs

put_view(t(), view()) :: t()
Link to this function

render(job, template, assigns \\ [])

Link to this function

set_renderer(job, renderer)

Specs

set_renderer(t(), renderer()) :: t()