I need to get a list of tags in a template document, but I can't figure how to do it. Is there any public function to use? Thanks.