Creates a template root with children and an optional layoutName.
children
layoutName
TemplateNode(this.children, this.layoutName);