Class: CamanParser

Defined in: src/core/


Parses Caman instructions embedded in the HTML data-caman attribute.

Constant Summary


Regex used for parsing options out of the data-caman attribute.


Instance Method Summary

Constructor Details

- (void) constructor(ele, ready)

Creates a new parser instance.


  • ele (DOMObject) DOM object to be instantiated with CamanJS
  • ready (Function) Callback function to pass to CamanJS

Instance Method Details

- (void) parse()

Parse the DOM object and call the parsed filter functions on the Caman object.

- (void) execute()

Execute Caman#render on this Caman instance.