Veil.Parser.SyntaxTree.Extend C# (CSharp) Method

Extend() public static method

Defines a template that extends another template e.g. MasterPages Extend nodes must be the root of a syntax tree
public static Extend ( string templateName, SourceLocation location, SyntaxTreeNode>.IDictionary overrides = null ) : ExtendTemplateNode
templateName string The name of the template to extend. It will be loaded from the
location SourceLocation
overrides SyntaxTreeNode>.IDictionary A set of overrides for the defined in the template being extended.
return Veil.Parser.Nodes.ExtendTemplateNode
        public static ExtendTemplateNode Extend(string templateName, SourceLocation location, IDictionary<string, SyntaxTreeNode> overrides = null)
        {
            return new ExtendTemplateNode
            {
				Location = location,
                TemplateName = templateName,
                Overrides = overrides ?? new Dictionary<string, SyntaxTreeNode>()
            };
        }