Skip to content

TemplateExport

ClassAssetInventoryAssetInventory.Editor
public sealed class TemplateExport : ActionProgress

Exports catalog data through a named text template and an explicit variable environment.

Run(List, TemplateInfo, List, TemplateExportSettings, TemplateExportEnvironment)

Section titled “Run(List, TemplateInfo, List, TemplateExportSettings, TemplateExportEnvironment)”
public Task Run(List<AssetInfo> assets, TemplateInfo template, List<TemplateInfo> templates, TemplateExportSettings settings, TemplateExportEnvironment env)

Renders the selected packages through the supplied template hierarchy and writes the resulting files to the configured target.

Parameters

Name Type
assets System.Collections.Generic.List{AssetInventory.AssetInfo}
template AssetInventory.TemplateInfo
templates System.Collections.Generic.List{AssetInventory.TemplateInfo}
settings AssetInventory.TemplateExportSettings
env AssetInventory.TemplateExportEnvironment

Returns

System.Threading.Tasks.Task

ResolveInheritance(TemplateInfo, string, List)

Section titled “ResolveInheritance(TemplateInfo, string, List)”
public static Task ResolveInheritance(TemplateInfo template, string targetFolder, List<TemplateInfo> templates)

Loads and merges parent templates into the supplied template, resolving relative assets from the target folder.

Parameters

Name Type
template AssetInventory.TemplateInfo
targetFolder System.String
templates System.Collections.Generic.List{AssetInventory.TemplateInfo}

Returns

System.Threading.Tasks.Task

public TemplateExport()