thanks vlad and radu for the explanation and hints. if creating our own template libraries with the existing sightly features is not sufficient to reduce the boilerplate code we will think about extending sightly in a generic way and make a proposal to the spec if it seems feasible.
although i listed only a link example in my initial post our use cases are currently inserting both link and media (image/video etc.) markup. stefan
