public string GetFolderPath(TemplateItem template, string baseFilePath) { string relativeTemplatePath = TemplateUtil.GetRelativeTemplatePath(template).Replace("/", "\\"); relativeTemplatePath = CodeUtil.CleanStringOfIllegalCharacters(relativeTemplatePath); if (!baseFilePath.EndsWith("\\")) { baseFilePath += "\\"; } return(baseFilePath + relativeTemplatePath); }
public string GetNamespace(TemplateItem template, string baseNamespace) { string relativePath = TemplateUtil.GetRelativeTemplatePath(template); if (string.IsNullOrEmpty(relativePath)) { return(baseNamespace); } relativePath = relativePath.Replace("/", "."); relativePath = CodeUtil.CleanStringOfIllegalCharacters(relativePath); return(baseNamespace + "." + relativePath); }