/// <summary> /// Composes a set of <c>docScriptInstruction</c> into supplied <c>docScript</c> instance or created blank new instance with <c>name</c> of this metaContainer /// </summary> /// <param name="script">The script.</param> /// <returns></returns> public override docScript compose(docScript script = null) { if (!title.isNullOrEmpty()) { script.AppendHorizontalLine(); script.open("import", name, ""); script.AppendComment(description); script.AppendHorizontalLine(); } if (!includeFilePath.isNullOrEmpty()) { script.AppendFromFile(includeFilePath); } if (includeTextBuilder != null) { script.AppendDirect(includeTextBuilder.ContentToString()); } if (!title.isNullOrEmpty()) { script.close(); } return(script); }
/// <summary> /// Composes the specified script. /// </summary> /// <param name="script">The script.</param> /// <returns></returns> public override docScript compose(docScript script) { script.x_scopeIn(this); script.AppendHeading(pageTitle); script.Append("Log content from: "); script.AppendLabel(instanceID, true, "primary"); script.AppendHorizontalLine(); script.AppendDirect(logBuilder.ContentToString(true)); script = base.compose(script); script.x_scopeOut(this); return(script); }