How to create a ReSharper 8.X Custom Macro that can fetch and process the containing type name

ReSharper 8.X ships with a macro that fetches the "Containing Type Name", but what I want to do is manipulate that name. I'm using this in a Visual Studio 2013 Web API project, and I want a template that takes the class name and builds the URL that has to be called. So, for example, suppose I have this:public class AnnouncementController : ApiController{ //Want to put a template here! [HttpGet] public HttpResponseMessage GetActiveAnnouncements() { /// ... } }now my ReSharper template will look something like this: ///...Read more