protected void LoadView(string view, Action<Exception, string> callback)
{
var deUrled = view.Replace('/', '\\').TrimStart('\\');
var viewFile = Path.Combine(ViewsRoot, deUrled);
if (!System.IO.File.Exists(viewFile))
{
throw new FileNotFoundException("View not found.");
}
FileSystem.File.ReadAllText(viewFile, (ex, text) => EventLoop.Pend(() => callback(ex, text)));
}