sprinkle

Functions

pub fn format(
  format_string: String,
  data: List(#(String, String)),
) -> String

Replaces any placeholders in the given format_string with the values given in the data argument.

Examples

format("My name is {name}!", [#("name", "Lily")])
// -> "My name is Lily!"
Search Document