OxL Reference

src/greet/greet.oxl

oxl
/// Builds the greeting for `name`; an empty name greets the world.
pub fn greeting(name: str) -> str  pure {
  if name.len() == 0 { "Hello, world!" } else { "Hello, {name}!" }
}

Source: examples/hello/src/greet/greet.oxl