Skip to content

Add helpers for modifying a document #26

@brandonchinn178

Description

@brandonchinn178

Add a helper using KDL Query Language (#10) to modify nodes in a document:

-- foo { inner { bar { baz } } }
-- =>
-- foo { inner { bar { baz2 } } }
doc.modifyNodesMatching ("foo" KDL.>> "bar" KDL.> "baz") $ \node -> node{name = "baz2"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions