Advanced templating: <composition>, <define>, <insert>