Table of Contents

TopicTransformationCore.LoadTemplateFile Method

Definition

Namespace
Sandcastle.Core.PresentationStyle.Transformation
Assembly
Sandcastle.Core.dll

Load a template file and perform any necessary substitution tag replacements

public static XDocument LoadTemplateFile(string templateFilePath, IEnumerable<(string Key, string Value)> replacementTags)

Parameters

templateFilePath string

The template file to load

replacementTags IEnumerable<(string Key, string Value)>

An optional enumerable list of tuples containing the substitution tag names and replacement values.

Returns

XDocument

A copy of the template XML document with the substitution tags replaced with the given text