Exemple #1
0
 public TemplateEngine(HamlOptions hamlOptions)
     : this(new TemplateFactoryFactory(
             new HamlTreeParser(new HamlFileLexer()),
             new HamlDocumentWalker(new CSharp2TemplateClassBuilder(), hamlOptions),
             new CodeDomTemplateCompiler(new CSharp2TemplateTypeBuilder())))
 {
 }
Exemple #2
0
        protected HamlNodeWalker(ITemplateClassBuilder classBuilder, HamlOptions options)
        {
            Invariant.ArgumentNotNull(options, "options");
            Invariant.ArgumentNotNull(classBuilder, "classBuilder");

            _classBuilder = classBuilder;
            _options = options;
        }
 public HamlNodeHamlCommentWalker(ITemplateClassBuilder classBuilder, HamlOptions options)
     : base(classBuilder, options)
 {
 }
 public DummyWalker(ITemplateClassBuilder classBuilder, HamlOptions options)
     : base(classBuilder, options)
 {
 }
 public HamlNodeHtmlAttributeCollectionWalker(ITemplateClassBuilder classBuilder, HamlOptions options)
     : base(classBuilder, options)
 {
 }
 public void SetUp()
 {
     _classBuilderMock = new ClassBuilderMock();
     _hamlOptions = new HamlOptions();
     _tagWalker = new HamlNodeTagWalker(_classBuilderMock, _hamlOptions);
 }