mix_systemd v0.1.0 MixSystemd.Templates View Source

Template functions.

These functions generate output files from templates.

Link to this section Summary

Link to this section Functions

Link to this function

template_file(template_file, bindings \\ []) View Source
template_file(String.t(), Keyword.t()) :: {:ok, String.t()} | {:error, term()}

Evaluate template file with bindings

Link to this function

write_template(vars, target_path, template) View Source
write_template(Keyword.t(), Path.t(), String.t()) :: :ok

Generate file from template

Link to this function

write_template(vars, target_path, template, filename) View Source
write_template(Keyword.t(), Path.t(), String.t(), Path.t()) :: :ok