We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This would convert DOM-like data structures into signal streams (the dual of Markup.tree):
Markup.tree
val from_tree : ('a -> [ `Element of string * (name * string) * 'a list | `Text of string ]) -> 'a -> (sync, signal) stream
with usage such as
type my_tree = Element of name * my_tree list | Text of string dom |> from_tree (function | Element (name, children) -> `Element (name, [], children) | Text s -> `Text s) |> write_xml |> to_string
Perhaps the result type of the function argument can support comments and others nodes besides text and elements.
The text was updated successfully, but these errors were encountered:
f7f3339
No branches or pull requests
This would convert DOM-like data structures into signal streams (the dual of
Markup.tree
):with usage such as
Perhaps the result type of the function argument can support comments and others nodes besides text and elements.
The text was updated successfully, but these errors were encountered: