@@ -59,7 +59,7 @@ internal static string GetTemplateId(string filePath, TemplateNames nameType)
59
59
if ( String . IsNullOrEmpty ( match . Value ) ) throw new Exception ( "模版页文件名:" + filePath + "不合法" ) ;
60
60
string fileName = match . Groups [ 2 ] . Value ;
61
61
String lowerFileName = fileName . ToLower ( ) ;
62
- if ( lowerFileName . EndsWith ( ".part. html" ) || nameType == TemplateNames . ID )
62
+ if ( lowerFileName . EndsWith ( ".html" ) || nameType == TemplateNames . ID )
63
63
{
64
64
//return MD5.EncodeTo16(Regex.Replace(fileName, "/|\\\\", String.Empty).ToLower());
65
65
}
@@ -91,7 +91,7 @@ internal static string GetPartialTemplateId(string partPath, string filePath, ou
91
91
DirectoryInfo dPar = null ;
92
92
DirectoryInfo dCurr = new FileInfo ( walkFilePath ) . Directory ;
93
93
94
- //example path: ../../inc/top.part. html
94
+ //example path: ../../inc/top.html
95
95
if ( Regex . IsMatch ( partPath , "^\\ .\\ ./" ) )
96
96
{
97
97
Regex pathRegex = new Regex ( "\\ .\\ ./" ) ;
@@ -122,7 +122,7 @@ internal static string GetPartialTemplateId(string partPath, string filePath, ou
122
122
else
123
123
{
124
124
//
125
- //example path: inc/top.part. html
125
+ //example path: inc/top.html
126
126
//
127
127
128
128
do
@@ -212,9 +212,9 @@ function dynamicTable(table) {
212
212
213
213
sb . Append ( @"<tr><td colspan=""6"" align=""center"" style=""background:#f0f0f0;color:#333"">
214
214
部分视图扩展名为“.phtml”,可允许格式如:
215
- A:${include:""inc/header.part. html""}
216
- B:${include:""/tmpdir/inc/header.part. html""}
217
- C:${include:""../../inc/header.part. html""}
215
+ A:${include:""inc/header.html""}
216
+ B:${include:""/tmpdir/inc/header.html""}
217
+ C:${include:""../../inc/header.html""}
218
218
</td></tr>" ) ;
219
219
220
220
sb . Append (
0 commit comments