예제 #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);
        }