示例#1
0
 public TemplatePartialPage(TemplateContext context, string name, IEnumerable <PageFragment> body, string format, Dictionary <string, object> args = null)
     : base(context, CreateFile(name, format), context.GetFormat(format))
 {
     PageFragments = body.ToList();
     Args          = args ?? new Dictionary <string, object>();
 }
示例#2
0
 public TemplatePages(TemplateContext context) => this.Context = context;
示例#3
0
 public TemplatePage(TemplateContext context, IVirtualFile file, Script.PageFormat format = null) : base(context, file, format)
 {
 }