Use the View for attaching, not the template

Given a view with a `name` property to render a different template, when attaching the DOM to the view, this would originally try to get a view with the same name as the `name` property.

With this change, it looks for the view's proper name instead of the template's name.