src/greet/greet.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}!" }
}Исходник: examples/hello/src/greet/greet.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}!" }
}Исходник: examples/hello/src/greet/greet.oxl