[HtmlTpl] added 'extend' method