Skip to content

Commit

Permalink
Also add flat params list.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Dec 10, 2024
1 parent 8e5e66c commit f9c0d89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lang/builtins_xml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ and xml_node ~params ~children =
[
( "xml_params",
Lang.record (List.map (fun (k, v) -> (k, Lang.string v)) params) );
( "xml_params_list",
Lang.list
(List.map
(fun (k, v) -> Lang.product (Lang.string k) (Lang.string v))
params) );
("xml_children", Lang.tuple (List.map (fun v -> value_of_xml v) children));
]

Expand Down

0 comments on commit f9c0d89

Please sign in to comment.