ASP 高级模板引擎实现类(2)
End Property
' ***************************************
' 设置分页 当前页
' ***************************************
Public Property Let CurrentPage(ByVal Str)
c_CurrentPage = Str
End Property
Public Property Get CurrentPage
CurrentPage = c_CurrentPage
End Property
' ***************************************
' 输出内容
' ***************************************
Public Property Get Flush
Response.Write(c_Content)
End Property
' ***************************************
' 类初始化
' ***************************************
Private Sub Class_Initialize
TagName = "pjblog"
c_Char = "UTF-8"
ReplacePageStr = Array("", "")
End Sub
' ***************************************
' 过滤冲突字符
' ***************************************
Private Function doQuote(ByVal Str)
doQuote = Replace(Str, Chr(34), """)
End Function
' ***************************************
' 类终结
' ***************************************
Private Sub Class_Terminate
End Sub
' ***************************************
' 加载文件方法
' ***************************************
Private Function LoadFromFile(ByVal cPath)
Dim obj
Set obj = Server.CreateObject("ADODB.Stream")
With obj
.Type = 2
.Mode = 3
.Open
内容版权声明:除非注明,否则皆为本站原创文章。