def template_json(self, spider_name, template_name):
        """Loads the given template.

        Also converts the annotated body of the template to be used by
        the annotation UI."""
        template = self.resource('spiders', spider_name, template_name)
        convert_template(template)
        return template
Loads the given template.

        Also converts the annotated body of the template to be used by
        the annotation UI.
slyd/slyd/projectspec.py