/// <summary>Call a string template with args and return result. Do not convert /// to a string yet. It may need attributes that will be available after /// this is inserted into another template. /// </summary> public virtual StringTemplate getTemplateInclude(StringTemplate enclosing, String templateName, StringTemplateAST argumentsAST) { StringTemplateGroup group = enclosing.getGroup(); StringTemplate embedded = group.getEmbeddedInstanceOf(enclosing, templateName); if (embedded == null) { enclosing.error("cannot make embedded instance of " + templateName + " in template " + enclosing.getName()); return null; } embedded.setArgumentsAST(argumentsAST); evaluateArguments(embedded); return embedded; }
public virtual void setArgumentsAST(StringTemplateAST argumentsAST) { this.argumentsAST = argumentsAST; }