FileInfo.cloneForLoader constructor

FileInfo.cloneForLoader(
  1. FileInfo current,
  2. Contexts context
)

Returns a new FileInfo for use in the fileLoader. ex.: FileInfo newFileInfo = new FileInfo.cloneForLoader(currentFileInfo, env); #

Implementation

FileInfo.cloneForLoader(FileInfo current, Contexts context) {
  rewriteUrls = context.rewriteUrls;
  entryPath = current.entryPath;
  rootpath = current.rootpath;
  rootFilename = current.rootFilename;
}