Support for <audio> and <video> tags in templates