这次加入了数据库模板功能 :)
<!-- METADATA TYPE="typelib" UUID="00000200-0000-0010-8000-00AA006D2EA4" NAME="ADO Type Library" -->
<%
'#######################################################################
'## NAME: aspTemplate
'## BY: BigHan
'## DATE: Nov. 28, 2003
'## SITE: http://aspTemplate.yeah.net/
'## EMAIL: aspTemplate21cn.com
'##
'## (C) Copyright 2003-2004 bighan
'#######################################################################
'#######################################################################
'## Database Table: See db/aspTemplate.mdb
'#######################################################################
Class aspTemplate
'####
'## name of this class
'## var string
'## access Private
'## see property: Name
'####
Private m_strName
'####
'## version of this class
'## var string
'## access Private
'## see property: Version
'####
Private m_strVersion
'####
'## Determines how much debugging output Template will produce.
'## This is a bitwise mask of available debug levels:
'## 0 = no debugging
'## 1 = debug variable assignments
'## 2 = debug calls to get variable
'## 3 = debug SQL
'## 4 = debug internals (outputs all function calls with parameters).
'##
'## var int
'## access Private
'## see property: Debug
'####
Private m_intDebug
'####
'## Template files data type
'##
'## "db" = Database
'## "file" = File
'##
'## var string
'## access private
'## see property: Mode
'####
Private m_strMode
'####
'## The base directory from which template files are loaded.
'##
'## var string
'## access private
'## see property: Root, Dir; method: SetRoot, set_root
'####
Private m_Root
'####
'## Determines how to output variable tags with no assigned value in templates.
'##
'## var string
'## access private
'## see property Unknowns; method: SetUnknowns, set_unknowns
'####
Private m_strUnknowns
'####
'## Determines how Template handles error conditions.
'## "yes" = the error is reported, then execution is halted
'## "report" = the error is reported, then execution continues by returning "false"
'## "no" = errors are silently ignored, and execution resumes reporting "false"
'##
'## var string
'## access private
'## see property IsHalt; method: halt
'####
Private m_strHaltError
'####
'## The last error message is retained in this variable.
'##
'## var string
'## access private
'## see property LastError
'##
Private m_strLastError
'####
'## Opening delimiter (usually "{")
'##
'## var string
'## access private
'## see property BeginTag
'####
Private m_strBeginTag
'####
'## Closing delimiter (usually "}")
'##
'## var string
'## access private
'## see private EndTag
'####
Private m_strEndTag
'####
'## A hash of strings forming a translation table which translates variable names
'## into names of files containing the variable content.
'## m_oFile.Item(varname) = "filename";
'##
'## var object
'## access private
'## see method: SetFile, SetFiles, set_file
'####
Private m_oFile
'####
'## Regular Expression Object
'##
'## var object
'## access private
'####
Private m_oRegExp
'####
'## A hash of strings forming a translation table which translates variable names
'## into regular expressions for themselves.
'## m_oVarKeys.Item(varname) = "{varname}"
'##
'## var object
'## access private
'## see method: SetVar, SetVars, SetAppendVar, SetAppendVars, set_var
'####
Private m_oVarKeys
'####
'## A hash of strings forming a transla
[1]