Render template based on object type to place nicely with other extensions

Fixes #43