Ejemplo n.º 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();
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 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;
 }