new MCParser(opts)
Parameters:
| Name |
Type |
Description |
opts |
Object
|
function
|
|
- Source:
Methods
generateMCDOM(str) → {Object|Array.<Object>}
Creates an object containing the MuttonChops hierarchy.
Follows HTML hierarchy, but takes it a step further with MC syntax
Parameters:
| Name |
Type |
Description |
str |
string
|
|
- Source:
- To Do:
-
- Build method
- Write unit test
Returns:
-
Type
-
Object
|
Array.<Object>
parseTextNode(str) → {Object|Array.<Object>}
Parses a DOM text node value into a MCDOM hierarchy
Parameters:
| Name |
Type |
Description |
str |
string
|
|
- Source:
- To Do:
-
- Build method
- Write unit test
Returns:
-
Type
-
Object
|
Array.<Object>