src/Microsoft.DocAsCode.Build.Engine/Template.cs
/// <summary>
/// Dependent files are defined in following syntax in Mustache template leveraging Mustache Comments
/// {{! include('file') }}
/// file path can be wrapped by quote ' or double quote " or none
/// </summary>
/// <param name="template"></param>
Dependent files are defined in following syntax in Mustache template leveraging Mustache Comments
{{. include('file') }}
file path can be wrapped by quote ' or double quote " or none
Dependent files are defined in following syntax in Mustache template leveraging Mustache Comments {{ . include ( ' file ' ) }} file path can be wrapped by quote ' or double quote " or none
private IEnumerable<TemplateResourceInfo> ExtractDependentResources(string templateName)
        {
            if (_rendererPool == null)
            {
                yield break;
            }
            using (var lease = _rendererPool.Rent())
            {
                var _renderer = lease.Resource;
                if (_renderer.Dependencies == null)
                {
                    yield break;
                }
                foreach (var dependency in _renderer.Dependencies)
                {
                    yield return new TemplateResourceInfo(dependency);
                }
            }
        }
private IEnumerable < TemplateResourceInfo > ExtractDependentResources ( string templateName ) { if ( _rendererPool == null ) { yield break ; } using ( var lease = _rendererPool . Rent ( ) ) { var _renderer = lease . Resource ; if ( _renderer . Dependencies == null ) { yield break ; } foreach ( var dependency in _renderer . Dependencies ) { yield return new TemplateResourceInfo ( dependency ) ; } } }
Dependent files are defined in following syntax in Mustache template leveraging Mustache Comments
{{!
Dependent files are defined in following syntax in Mustache template leveraging Mustache Comments {{ !
templateName
string
template
None