Diesel.Templating (diesel v0.5.8)

Liquid templating support for DSLs during compilation.

Example:

defmodule Paper do
  use Latex

  latex do
    document size: "{{ doc.size }}" do
      ...
    end
  end
end

iex> context = %{doc: %{size: "a4"}}
iex> Paper.compile(context)

Summary

Functions

Link to this function

render!(tpl, vars)