Machine.UrlStrong.Translation.TemplateBuilderPostBuildStep.Install C# (CSharp) Method

Install() public method

public Install ( System stateSaver ) : void
stateSaver System
return void
    public override void Install(System.Collections.IDictionary stateSaver)
    {
      var engine = new SparkViewEngineFactory().CreateViewEngine();
      string assemblyPath = GetType().Assembly.Location;
      string targetPath = Path.ChangeExtension(assemblyPath, ".Templates.dll");

      var descriptors = new List<SparkViewDescriptor>();
      descriptors.Add(new SparkViewDescriptor().AddTemplate("master.spark"));
      engine.BatchCompilation(targetPath, descriptors);
    }