Adding Function to handle attach points in the templates.
Merge pull request #793 from DaviRyan/attachPoints

Adding Function to handle attach points in the templates.