Unifying BlockListItem and BlockGridItem

Hi,

Is there any way to “unify” the view file rendering for BlockListItems and BlockGridItems?

It seems weird that you have to create two completely identical view files for rendering a block through a BlockList or a BlockGrid?

The only difference in the view file is the inherits line:

@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockListItem>

vs.

@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Core.Models.Blocks.BlockGridItem>

Is there any way that i can use the same rendering template so that the block can be used both in a Block List and a Block Grid?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/114577-unifying-blocklistitem-and-blockgriditem