pub fn parse(template: &str) -> Vec<Token>Expand description
Parse a template string into a sequence of tokens.
Template strings contain literal text interspersed with % placeholder tokens.
Recognized tokens include %date, %title, %note, etc., with optional
width, alignment, marker, indent, and prefix modifiers. Color tokens like
%cyan, %boldwhite, %reset, and %#FF5500 are also recognized.
Escaped percent signs (\%) become literal % in the output. Unrecognized
% sequences are preserved as literal text.