solid v0.1.0 Solid

Main module to interact with Solid

iex> Solid.parse("{{ variable }}") |> Solid.render(%{ "variable" => "value" }) |> to_string "value"

Link to this section Summary

Functions

It generates the compiled template

It renders the compiled template using a hash with vars

Link to this section Functions

Link to this function

parse(text)

parse(String.t()) :: any()

It generates the compiled template

Link to this function

render(text, hash \\ %{})

render(any(), Map.t()) :: iolist()

It renders the compiled template using a hash with vars