View Source Renewex (renewex v0.10.0)

The Renewex module provides functionality for parsing Renew source files (*.rnw).

Summary

Functions

Parses the content of a .rnw file saved by Renew.

Convert a document into a serialized binary string according to the Renew (*.rnw) file format.

Functions

Parses the content of a .rnw file saved by Renew.

Parameters

  • input: The content of an .rnw file as string

Returns

  • {:ok, root, refs}: On success, returns the root of the parsed document tree and a list of references.
  • {:error, reason}: On failure, returns an error tuple with the reason for failure.
Link to this function

serialize_document(document)

View Source

Convert a document into a serialized binary string according to the Renew (*.rnw) file format.

Parameters

  • document: The renew document to serialize

Returns

  • {:ok, string}: On success, returns the serialized document as string.
  • {:error, reason}: On failure, returns an error tuple with the reason for failure.