public LiquidTemplate(string language, string template, string data, object model, string toolchainVersion, CodeGeneratorSettingsBase settings)
 {
     _language         = language;
     _template         = template;
     _data             = data;
     _model            = model;
     _toolchainVersion = toolchainVersion;
     _settings         = settings;
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="TypeResolverBase" /> class.</summary>
 /// <param name="settings">The settings.</param>
 protected TypeResolverBase(CodeGeneratorSettingsBase settings)
 {
     _settings = settings;
 }
Ejemplo n.º 3
0
 /// <summary>Initializes a new instance of the <see cref="ValueGeneratorBase" /> class.</summary>
 /// <param name="settings">The settings.</param>
 protected ValueGeneratorBase(CodeGeneratorSettingsBase settings)
 {
     _settings = settings;
 }
 /// <summary>Initializes a new instance of the <see cref="GeneratorBase"/> class.</summary>
 /// <param name="rootObject">The root object.</param>
 /// <param name="typeResolver">The type resolver.</param>
 /// <param name="settings">The settings.</param>
 protected GeneratorBase(object rootObject, TypeResolverBase typeResolver, CodeGeneratorSettingsBase settings)
 {
     RootObject = rootObject;
     _resolver  = typeResolver;
     _settings  = settings;
 }
 /// <summary>Initializes a new instance of the <see cref="DefaultTemplateFactory"/> class.</summary>
 /// <param name="settings">The settings.</param>
 /// <param name="assemblies">The assemblies containing embedded Liquid templates.</param>
 public DefaultTemplateFactory(CodeGeneratorSettingsBase settings, Assembly[] assemblies)
 {
     _settings   = settings;
     _assemblies = assemblies;
 }