You can extend the razor view engine by inhereting from RazorViewEngine
class, you can find an example of how to do that here
Also, check out Nancy.Viewengines.Razor which is a view engine built on top of Razor view engine, and has it's own syntax parser