C# Class Plovr.Runners.ClosureTemplateRunner

Inheritance: BaseRunner
Exibir arquivo Open project: hikirsch/Plovr.NET Class Usage Examples

Public Methods

Method Description
ClosureTemplateRunner ( IPlovrSettings settings, IPlovrProject project ) : System.IO
Compile ( string filePath, string &tempFilePath, string &outputString, string &errorStringOutput ) : int
GetCompile ( string filePath, string &plovrSoyContents, string &outputString, string &errorStringOutput ) : int

Run the SoyToJsSrc Compiler. Unfortunately, this compiler saves the output to a file. So we ask .NET to give use a temporary file, run it, get the contents and then delete it.

Private Methods

Method Description
BuildParams ( string filePath, string tempFilePath ) : string

Using the SoyToJsSrcCompilerParamBuilder, build up all the params so we can pass this to the AsyncProcessHelper.

Method Details

ClosureTemplateRunner() public method

public ClosureTemplateRunner ( IPlovrSettings settings, IPlovrProject project ) : System.IO
settings IPlovrSettings
project IPlovrProject
return System.IO

Compile() public method

public Compile ( string filePath, string &tempFilePath, string &outputString, string &errorStringOutput ) : int
filePath string
tempFilePath string
outputString string
errorStringOutput string
return int

GetCompile() public method

Run the SoyToJsSrc Compiler. Unfortunately, this compiler saves the output to a file. So we ask .NET to give use a temporary file, run it, get the contents and then delete it.
public GetCompile ( string filePath, string &plovrSoyContents, string &outputString, string &errorStringOutput ) : int
filePath string
plovrSoyContents string
outputString string
errorStringOutput string
return int