It wasn't really designed for it, but here's an example of using ServiceStack to render stand-alone razor pages.
You could also use another tool like razorgenerator or RazorEngine though this is disconnected and doesn't have anything to do with the Razor support in ServiceStack.