private RawContentItem CreateRawItem(string file) { FileInfoBase info; var contents = this.SafeReadContents(file, out info); IDictionary <string, object> header = null; try { header = contents.YamlHeader(); } catch (Exception ex) { throw new ApplicationException(String.Format("{0}", file), ex); } var page = new RawContentItem { Content = this.RenderContent(file, contents, header) }; page.LastWriteTimeUtc = info.LastWriteTimeUtc; page.Settings = header; return(page); }
private RawContentItem CreateRawItem(string file) { var contents = this.SafeReadContents(file); var header = contents.YamlHeader(); var page = new RawContentItem { Content = this.RenderContent(file, contents, header) }; page.Settings = header; return(page); }
private RawContentItem CreateRawItem(string file) { FileInfoBase info; var contents = this.SafeReadContents(file, out info); IDictionary<string, object> header = null; try { header = contents.YamlHeader(); } catch(Exception ex) { throw new ApplicationException(String.Format("{0}", file), ex); } var page = new RawContentItem { Content = this.RenderContent(file, contents, header) }; page.LastWriteTimeUtc = info.LastWriteTimeUtc; page.Settings = header; return page; }
private RawContentItem CreateRawItem(string file) { var contents = this.SafeReadContents(file); var header = contents.YamlHeader(); var page = new RawContentItem { Content = this.RenderContent(file, contents, header) }; page.Settings = header; return page; }