Rewrite-cljs Api Documentation

Version: 0.3.0

rewrite-clj.zip.insert

append-child

(append-child zloc item)

Insert item as last child of the current node. Will insert a space if necessary.

insert

(insert move-fn insert-fn prefix zloc item)

Generic insertion helper. If the node reached by move-fn is a whitespace, insert an additional space.

insert-child

(insert-child zloc item)

Insert item as first child of the current node. Will insert a space if necessary.

insert-left

(insert-left zloc item)

Insert item to the right of the left location. Will insert a space if necessary.

insert-right

(insert-right zloc item)

Insert item to the right of the current location. Will insert a space if necessary.