示例#1
0
        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);
        }
示例#2
0
        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);
        }