use super::*; use crate::layout::{StackChild, StackNode}; /// `stack`: Stack children along an axis. /// /// # Positional parameters /// - Children: variadic, of type `template`. /// /// # Named parameters /// - Stacking direction: `dir`, of type `direction`. /// /// # Return value /// A template that places its children along the specified layouting axis. /// /// # Relevant types and constants /// - Type `direction` /// - `ltr` /// - `rtl` /// - `ttb` /// - `btt` pub fn stack(ctx: &mut EvalContext, args: &mut FuncArgs) -> Value { let dir = args.named::