Exemplo n.º 1
0
        void AddTemplateFile(AbsoluteFilePath fileName)
        {
            if (_template.BannedFiles.Contains(fileName))
            {
                return;
            }

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

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