MavuSnippets.SnippetCompiler (MavuSnippets v0.1.13) View Source

Compile text with provided values.

Link to this section Summary

Functions

Compile text with provided values.

Link to this section Functions

Compile text with provided values.

Parameters

  • text: String or List of strings to compile.
  • values: Map of values.

Examples

iex> MavuSnippets.SnippetCompiler.compile("hello %{test}", %{"test" => "world"})
"hello world"

iex> MavuSnippets.SnippetCompiler.compile("hello %{test}", %{})
"hello %{test}"

iex> MavuSnippets.SnippetCompiler.compile(["hello %{test}", "No.%{nr}"], %{"test" => "world", "nr" => 1})
["hello world", "No.1"]