Re-wrote parser to parse template of resources with no external relaties