Implement Structure View for templates (WIP)