new Complier()
- Source:
Members
(static) this.parser
- Source:
an instance of Parser
(static) this.renderer
- Source:
an instance of Renderer
Methods
overrideRender(name, func)
- Source:
override the function of Renderer
Parameters:
Name | Type | Description |
---|---|---|
name |
string | the function name |
func |
function | the function |
parse(str) → {Array}
- Source:
parse the html string
Parameters:
Name | Type | Description |
---|---|---|
str |
string | html string |
Returns:
ast
- Type
- Array
render(ast, data)
- Source:
render the ast
Parameters:
Name | Type | Description |
---|---|---|
ast |
Array | ast |
data |
Object | the template data |