add templates method

Like categories, links and images methods, templates method returns an array of templates from the given page.