includeUri method

void includeUri(
  1. String uri, [
  2. Map<String, String>? args,
  3. int? line
])

Include the given URI.

Implementation

void includeUri(String uri, [Map<String, String>? args, int? line]) {
  if (verbose) _info("Include $uri", line);

  _write("\n${_current.pre}await connect.include(");
  final emptyArgs = args == null || args.isEmpty;
  if (!emptyArgs)
    _write("Rsp.cat(");
  _write("${toEL(uri, direct: false)}");
  if (!emptyArgs) {
    _catArgs(args);
    _write(')');
  }
  _writeln(");${_getLineNumberComment(line)}");
}