Esempio n. 1
0
        public void SetUp()
        {
            var library = new DefaultHtmlConventions().Library;

            theTemplates = new TemplateWriter(new ActiveProfile(), library, new TagRequestBuilder(new ITagRequestActivator[0]));

            theTemplates.AddTemplate("foo", new HtmlTag("span").MustacheText("foo"));
            theTemplates.AddTemplate("bar", "some {{bar}} text");

            templates = theTemplates.WriteAll();
        }
        public void SetUp()
        {
            var library = new DefaultHtmlConventions().Library;

            theTemplates = new TemplateWriter(new ActiveProfile(), library, new TagRequestBuilder(new ITagRequestActivator[0]));

            theTemplates.AddTemplate("foo", new HtmlTag("span").MustacheText("foo"));
            theTemplates.AddTemplate("bar", "some {{bar}} text");

            templates = theTemplates.WriteAll();
        }
Esempio n. 3
0
 public void do_not_write_anything_if_there_are_no_templates()
 {
     theTemplates.WriteAll().WillBeRendered().ShouldBeFalse();
 }
        public void SetUp()
        {
            var library = new DefaultHtmlConventions().Library;

            theTemplates = new TemplateWriter(new ActiveProfile(), library, new DefaultElementNamingConvention(),
                                              new InMemoryServiceLocator());

            theTemplates.AddTemplate("foo", new HtmlTag("span").MustacheText("foo"));
            theTemplates.AddTemplate("bar", "some {{bar}} text");

            templates = theTemplates.WriteAll();
        }