Re: SXML and optional attributes
On 22/12/24 21:38, Maxime Devos wrote: Unquote-splicing (,@) is your friend: `(foo ,@(if p? '(a (b) c) '()) d) When p? -> (foo a (b) c d). When (not p?) -> (foo d). Now do this for SXML … Ah, splicing... yes Maxime, that works :) So I applied it as follows: (define* (special-input #:key
RE: SXML and optional attributes
Unquote-splicing (,@) is your friend: `(foo ,@(if p? '(a (b) c) '()) d) When p? -> (foo a (b) c d). When (not p?) -> (foo d). Now do this for SXML …