/// <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); if (!introContentPath.isNullOrEmpty()) { script.AppendFromFile(introContentPath); } script = base.compose(script); if (!outroContentPath.isNullOrEmpty()) { script.AppendFromFile(outroContentPath); } script.x_scopeOut(this); return(script); }