Template Struct eval¶
Defined in File parser.h
Struct Documentation¶
-
template<typename
ScopeT, typenameContextT>
structudho::view::parsing::attrs::eval¶ udho::eval:NAME = EXPR will add an attribute named
NAMEwith value retrieved by evaluating the expressionEXPR. It can have a conditional form too where the conditionexpris first evaluated and if expr is true then the attribute is added, otherwise notis transformed to<input type="text" udho:eval:value="count(books)"></input> <input type="text" udho:eval:title="expr ? count(books)"></input>
<input type="text" value="2"></input> <input type="text" value="2"></input>