Class: CamanParser

Defined in: src/core/autoload.coffee

Overview

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

Constant Summary

INST_REGEX =

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

"(\\w+)\\((.*?)\\)"

Instance Method Summary

Constructor Details

- (void) constructor(ele, ready)

Creates a new parser instance.

Parameters:

  • 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.