public override object ToHtml(ExternalContentReg extReg) { extReg.HtmlPages.Register(this); return(new XElement( "object", new XAttribute("data", SourcePath), new XAttribute("class", "embeddedHtmlPage") )); }
public override object ToHtml(ExternalContentReg extReg) { extReg.Images.Register(this); return(new XElement( "img", new XAttribute("src", extReg.Images.GetPath(this)), new XAttribute("alt", "(Image from source path '" + this.SourcePath + "' should be here)"), new XAttribute("class", "embeddedImage") )); }
public override object ToHtml(ExternalContentReg extReg) { extReg.Pdfs.Register(this); return(new XElement( "embed", new XAttribute("src", extReg.Pdfs.GetPath(this)), new XAttribute("type", "application/pdf"), new XAttribute("class", "embeddedPdf") )); }
public object ToHtml(ExternalContentReg extReg) { return(Html); }
public abstract object ToHtml(ExternalContentReg extReg);
public Website(string siteName, Page root, ExternalContentReg extReg) { this.SiteName = siteName ?? throw new ArgumentNullException(nameof(siteName)); this.Root = root ?? throw new ArgumentNullException(nameof(root)); this.ExternalReg = extReg ?? throw new ArgumentNullException(nameof(extReg)); }