src/Microsoft.DocAsCode.Build.Engine/Template.cs
/// <summary>
/// Transform from view model to the final result using template
/// Supported template languages are mustache and liquid
/// </summary>
/// <param name="model">The input view model</param>
/// <returns>The output after applying template</returns>
Transform from view model to the final result using template
Supported template languages are mustache and liquid
Transform from view model to the final result using template Supported template languages are mustache and liquid
public string Transform(object model)
        {
            if (_rendererPool == null || !ContainsTemplateRenderer || model == null)
            {
                return null;
            }
            using (var lease = _rendererPool.Rent())
            {
                return lease.Resource.Render(model);
            }
        }
public string Transform ( object model ) { if ( _rendererPool == null || ! ContainsTemplateRenderer || model == null ) { return null ; } using ( var lease = _rendererPool . Rent ( ) ) { return lease . Resource . Render ( model ) ; } }
Transform from view model to the final result using template
Supported template languages are mustache and liquid
Transform from view model to the final result using template Supported template languages are mustache and liquid
The output after applying template
The output after applying template
model
object
The input view model
The input view model