Beispiel #1
0
 protected virtual XElement RenderDocument(CmsContext context, CmsDocument document)
 {
     return XmlParser.ParseSafe(String.Format(DocumentFormat, String.Join("", document.Parts.Select(p => RenderPart(context, p)))));
 }
Beispiel #2
0
 protected virtual XElement RenderPart(CmsContext context, CmsPart part)
 {
     return XmlParser.ParseSafe(String.Format(PartFormat, context.Render(part)));
 }
Beispiel #3
0
 public virtual IEnumerable<XElement> Render(CmsContext context, params CmsDocument[] documents)
 {
     return documents.Select(d => RenderDocument(context, d));
 }