public HtmlTemplateToJavaScriptTransformer(string javaScriptTemplate, HtmlTemplateBundle bundle, IJsonSerializer serializer, IHtmlTemplateIdStrategy idStrategy)
 {
     this.javaScriptTemplate = javaScriptTemplate;
     this.bundle             = bundle;
     this.serializer         = serializer;
     this.idStrategy         = idStrategy;
 }
 public HtmlTemplateToJavaScriptTransformer(string javaScriptTemplate, HtmlTemplateBundle bundle, IJsonSerializer serializer, IHtmlTemplateIdStrategy idStrategy)
 {
     this.javaScriptTemplate = javaScriptTemplate;
     this.bundle = bundle;
     this.serializer = serializer;
     this.idStrategy = idStrategy;
 }
Example #3
0
 public RegisterTemplateWithHogan(HtmlTemplateBundle bundle, string javaScriptVariableName, IHtmlTemplateIdStrategy idStrategy)
 {
     this.bundle = bundle;
     this.javaScriptVariableName = javaScriptVariableName;
     this.idStrategy             = idStrategy;
 }
 public WrapHtmlTemplateInScriptElement(HtmlTemplateBundle bundle, IHtmlTemplateIdStrategy idStrategy)
 {
     this.bundle = bundle;
     this.idStrategy = idStrategy;
 }
Example #5
0
 public RegisterTemplatesWithHogan(string javaScriptVariableName, IHtmlTemplateIdStrategy idStrategy)
 {
     this.idStrategy             = idStrategy;
     this.javaScriptVariableName = javaScriptVariableName ?? "JST";
 }
 public HtmlTemplateToJavaScriptTransformerTests()
 {
     asset = new Mock<IAsset>();
     htmlTemplateIdStrategy = new HtmlTemplateIdBuilder();
     bundle = new HtmlTemplateBundle("~");
 }
 void GivenIdStrategy(IHtmlTemplateIdStrategy htmlTemplateIdStrategy)
 {
     this.htmlTemplateIdStrategy = htmlTemplateIdStrategy;
 }
 public RegisterTemplateWithHogan(HtmlTemplateBundle bundle, string javaScriptVariableName, IHtmlTemplateIdStrategy idStrategy)
 {
     this.bundle = bundle;
     this.javaScriptVariableName = javaScriptVariableName;
     this.idStrategy = idStrategy;
 }
Example #9
0
 public RegisterTemplateWithJQueryTmpl(HtmlTemplateBundle bundle, IHtmlTemplateIdStrategy idStrategy)
 {
     this.bundle     = bundle;
     this.idStrategy = idStrategy;
 }
 public RegisterTemplateWithJQueryTmpl(HtmlTemplateBundle bundle, IHtmlTemplateIdStrategy idStrategy)
 {
     this.bundle = bundle;
     this.idStrategy = idStrategy;
 }
 public WrapHtmlTemplateInScriptElement(HtmlTemplateBundle bundle, IHtmlTemplateIdStrategy idStrategy)
 {
     this.bundle     = bundle;
     this.idStrategy = idStrategy;
 }
 void GivenIdStrategy(IHtmlTemplateIdStrategy htmlTemplateIdStrategy)
 {
     this.htmlTemplateIdStrategy = htmlTemplateIdStrategy;
 }
 public HtmlTemplateToJavaScriptTransformerTests()
 {
     asset = new Mock <IAsset>();
     htmlTemplateIdStrategy = new HtmlTemplateIdBuilder();
     bundle = new HtmlTemplateBundle("~");
 }
Example #14
0
 public WrapHtmlTemplatesInScriptElements(IHtmlTemplateIdStrategy idStrategy)
 {
     this.idStrategy = idStrategy;
 }