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
- - (void) constructor(ele, ready) Constructor Creates a new parser instance.
- - (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.
Constructor Details
- (void) constructor(ele, ready)
Creates a new parser instance.
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.