The Javascript Library

The bml library is exposed by a single function:

bml(sourceString: string, renderSettings: object?)

where sourceString is a single string holding the contents of a complete bml document, and renderSettings is an optional Object with the following properties:

setting default purpose
randomSeed null a random seed for the render session. may be any Object. All bml documents rendered on the same bml version with the same random seed should result in the same output, assuming the bml document's eval block is deterministic or uses the provided functions for random components
allowEval true A boolean flag controlling whether eval blocks should be executed in this render. This is primarily useful for security purposes.