C# Class mustache.Trimmer

Removes unnecessary lines from the final output.
Show file Open project: Zocdoc/mustache-sharp Class Usage Examples

Public Methods

Method Description
RecordText ( string value, bool isTag, bool isOutput ) : IEnumerable

Updates the state of the trimmer, indicating that the given text was encountered before an inline tag.

Trim ( ) : void
Trimmer ( ) : System

Initializes a new instance of a Trimmer.

Private Methods

Method Description
removeBlankLines ( ) : void
removeEmptyGenerators ( ) : void
separateLines ( ) : void

Method Details

RecordText() public method

Updates the state of the trimmer, indicating that the given text was encountered before an inline tag.
public RecordText ( string value, bool isTag, bool isOutput ) : IEnumerable
value string The text at the end of the format string.
isTag bool
isOutput bool
return IEnumerable

Trim() public method

public Trim ( ) : void
return void

Trimmer() public method

Initializes a new instance of a Trimmer.
public Trimmer ( ) : System
return System