add support for native <template> tag