コード例 #1
0
        public HtmlDocument Index()
        {
            _document.Title = "Storyteller 3";

            writeInitialDataIntoPage(_document);

            _document.Add("div").Id("header-container");
            _document.Add("div").Id("body-pane").AddClass("container");

            if (File.Exists(_files.RootPath.AppendPath("public", "stylesheets", "storyteller.css")))
            {
                _tags.BuildStylesheetTags(new[] { "bootstrap.min.css", "storyteller.css", "font-awesome.min.css" });
            }
            else
            {
                BatchResultsWriter.WriteCSS(_document);
                _document.Head.Add("link")
                .Attr("rel", "stylesheet")
                .Attr("href", "//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css");
            }

            _document.Body.Append(_document.Script("bundle.js"));

            return(_document);
        }
コード例 #2
0
        public HtmlDocument get_javascript_error()
        {
            _document.Title = "Javascript Error";
            _document.Body.Append(_document.Script("errors.js"));

            return(_document);
        }