added razor compilation and middleware snippets