Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TemplateContext"/> class.
 /// </summary>
 public TemplateContext()
 {
     StyleDirectories = new List <string>();
     _regexItems      = new List <TagExpandItem>();
     _msnRegistry     = new MsdnRegistry();
     Param            = new DynamicParam();
     Style            = new DynamicParam();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TemplateContext"/> class.
 /// </summary>
 public TemplateContext(Razorizer razorizer)
 {
     this.Razorizer = razorizer;
     StyleDirectories = new List<string>();
     _regexItems = new List<TagExpandItem>();
     _msnRegistry = new MsdnRegistry();
     Param = new DynamicParam();
     Style = new DynamicParam();
     razorizer.TemplateResolver += TemplateResolver;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TemplateContext"/> class.
 /// </summary>
 public TemplateContext(Razorizer razorizer)
 {
     this.Razorizer              = razorizer;
     StyleDirectories            = new List <string>();
     _regexItems                 = new List <TagExpandItem>();
     _msnRegistry                = new MsdnRegistry();
     Param                       = new DynamicParam();
     Style                       = new DynamicParam();
     razorizer.TemplateResolver += TemplateResolver;
 }