Пример #1
0
        protected ContentStream SparkView(string name)
        {
            var stream = new ContentStream(_directory, name, ".spark");

            _streams.Add(stream);

            return(stream);
        }
Пример #2
0
        protected ContentStream RazorView(string name)
        {
            var stream = new ContentStream(_directory, name, ".cshtml");

            _streams.Add(stream);

            return(stream);
        }
Пример #3
0
        protected ContentStream File(string name)
        {
            var stream = new ContentStream(_directory, name, "");

            _streams.Add(stream);

            return(stream);
        }
Пример #4
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);
        }
Пример #5
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);
        }