Orchard get razor views from database-Collection of common programming errors

I am writing a custom orchard module which needs to read in “Razor template” views from the database and dynamically add them to orchard pages when published via Content manager.

I see that Orchard implements its own view engine and also a custom virtualPathHandler. I am wondering if someone has tried to do something similar in orchard.

Thanks.