macro_rules! t { ($cx:expr, $id:expr) => { ... }; ($cx:expr, $id:expr, { // NOTE Using a colon here leads to literally impossible to solve cast errors based on compiler misinterpretations $($key:literal = $value:expr),+ }) => { ... }; }
Expand description
Translates the given ID conveniently, taking arguments for interpolation as required. The final argument to any call of this macro must be a Sycamore reactive scope provided to the relevant Perseus template.