void AddTemplateFile(AbsoluteFilePath fileName)
        {
            if (_template.BannedFiles.Contains(fileName))
            {
                return;
            }

            var templateFile = new TemplateFile()
            {
                Path = fileName.RelativeTo(_template.BasePath)
            };

            _template.TemplateFiles.Add(templateFile);
        }
Exemple #2
0
 public static AbsoluteFilePath Rebase(this AbsoluteFilePath path, AbsoluteDirectoryPath from, AbsoluteDirectoryPath onto)
 {
     return(onto / path.RelativeTo(from));
 }