public static List<String> explodeFileRef(String source, Path baseDir, String fileReference) {
		String[] split = fileReference.split("=", 2);
		if (split.length == 1) {
			List<String> refs = Util.explode(source, baseDir, fileReference);
			return refs.stream()
				.map(s -> {
					if (Util.isValidPath(s)) {
						Path base = Util.basePathWithoutPattern(fileReference);
						Path sub = base.relativize(Paths.get(s)).getParent();
						if (sub != null) {
							return sub + "/=" + s;
						}
					}
					return s;
				})
				.collect(Collectors.toList());
		} else {
			String filePattern = split[1];
			String alias = !Util.isPattern(filePattern) || split[0].isEmpty() || split[0].endsWith("/") ? split[0]
					: split[0] + "/";
			List<String> refs = Util.explode(source, baseDir, filePattern);
			return refs.stream()
				.map(s -> {
					if (Util.isValidPath(s)) {
						Path base = Util.basePathWithoutPattern(filePattern);
						Path sub = base.relativize(Paths.get(s)).getParent();
						if (sub != null) {
							return Paths.get(alias).resolve(sub) + "/=" + s;
						}
					}
					return alias + "=" + s;
				})
				.collect(Collectors.toList());
		}
	}
Resolves any globbing characters found in the given
<code>fileReference</code>. A line that has no globbing characters will be
returned unchanged, otherwise a line like `img/**.jpg` or `WEB-INF=web/**`
gets turned into a list of the same value but with the globbing resolved into
actual file paths. In the case that an alias was supplied (eg `WEB-INF=`) it
will be assumed to be the name of the folder the files must be mounted into.
The paths are considered relative to the given <code>baseDir</code>.
src/main/java/dev/jbang/source/TagReader.java