Template Struct target¶
Defined in File parser.h
Struct Documentation¶
-
template<typename
ScopeT, typenameContextT>
structudho::view::parsing::attrs::target¶ udho::target:NAME = KEY will add an attribute named
NAMEwith value retrieved by resolvingKEYthrough scope table. 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<div class="book" udho:target:title="book.title"></div> <div class="book" udho:target:title="expr ? book.title"></div>
<div class="book" title="Some title"></div> <div class="book" title="Some title"></div>