Format atom feed

This commit is contained in:
Nathan McCarty 2025-02-06 18:39:20 -05:00
parent 68530c58d9
commit b1ec578902
2 changed files with 12 additions and 1 deletions

10
lib/XQ.rakumod Normal file
View file

@ -0,0 +1,10 @@
#| Interaction with xq
unit module XQ;
#| Format an xml string
sub format-xml(Str:D $input --> Str:D) is export {
my $xq = run <xq>, :out, :in;
# Inject the xml
$xq.in.spurt: $input, :close;
$xq.out.slurp: :close
}