Closed vlapchenko closed 7 years ago
Provide details/example
Example:
/***
table {
"?buildRow(cur_element, value11, value12);"
"?buildRow(cur_element, value21, value22);"
"?buildRow(cur_element, value31, value32);"
...
}
***/
function buildRow(root, val1, val2) {
/***
tr {
td=?val1 {}
td=?val2 {}
}
***/
}
Now you can use "?this" as pointer on current html element. Also you can create pointer on any item in tree and use it:
div{
ljsid=root
div="some text" {}
"? if(root.hasChild())" {
....
}
}
Please, add to JS Compiler source laconf code an ability to get a pointer to current DOM element.