Added support of multiple namespaces in HTML templates.