Dynamic templates

Im getting a list of blog posts from an external feed and listing them within an ap.

The list has blog titles that are clickable though to another view which shows the post details. Ive got a template for the post details and thats all cool. My questions is how can i change the app to allow the template that get used to be dynamic based on a category of post. So say a post in a gallery category id like the post details view to have a different template.

Is there a way to tell the router which template to use once the data has been fetched or is there a way to allow the post details template to have various option it can use based on a post category that would be stored in the scope?