protected ContentStream SparkView <T>(string name) { var stream = new ContentStream(_directory, name, ".spark"); stream.WriteLine("<viewdata model=\"{0}\" />", typeof(T).FullName); _streams.Add(stream); return(stream); }
protected ContentStream RazorView <T>(string name) { var stream = new ContentStream(_directory, name, ".cshtml"); stream.WriteLine("@model {0}", typeof(T).FullName); _streams.Add(stream); return(stream); }