This project is read-only.

Why is the Razor class static?

Apr 6, 2011 at 3:21 PM

Probably too late to do anything about it now, but I was wondering why the Razor class was static. I thought the current best practice was to avoid static helper classes...?

Apr 6, 2011 at 6:10 PM


The Razor static class is merely a static wrapper around a default implementation of TemplateService.  You can spin up as many instances of TemplateService as you like, the Razor static class just makes it easy to start parsing @razor templates very easily.