Module

Metajelo.XPaths.Write

Package
purescript-metajelo
Repository
labordynamicsinstitute/purescript-metajelo

#DocWriterRoot Source

#DocWriter Source

type DocWriter t = ParseEnv -> Node -> t -> Effect Unit

#writeRecord Source

writeRecord :: DocWriterRoot MetajeloRecord

For convenience, this method assumes that a document with the outer layers "above" individual supplementary producs exist in the env environment (sans perhaps a few attributes which will be filled in). This means the starting doc (blankDoc) used is not valid Metajelo, but successfully running writeRecord on it will return a valid Metajelo document.

#writeSimpleNode Source

writeSimpleNode :: String -> DocWriter String

For creating a simple node with a string value that has no other children or attributes.

#createRecEle Source

createRecEle :: ParseEnv -> String -> Effect Element

Less safe than using createAppendRecEle directly, due to the possibility of creating dangling nodes.