Replacing the template tag when FSO generates a static HTML file has always been a very troublesome problem. At least I think so. Do not create another template. This is troublesome !, I saw a way to solve this problem today.
Such as a normal index. asp page, and use ASP code to call up the content in the database, and create another makehtml. add a textarea domain to the asp page. Assume that it is name = "body" and index. asp is called in textarea, for example:
<Textarea name = "body"> <! -- # Include file = "index. asp" --> </textarea>: include this textareain the table list and create an fsoobject for the receiving table single page. For example, the index.html file is generated!
<%
Filename = "../index.html"
If request ("body") <> "then
Set fso = Server. CreateObject ("Scripting. FileSystemObject ")
Set fout = fso. CreateTextFile (server. mappath ("" & filename &""))
Fout. write request. form ("body ")
Fout. close
Set fout = nothing
Set fso = nothing
End if
%>
The index.html file is generated, and the template is not required. You only need to read the ASP file used normally to textarea. No problem has been found yet! The premise is that the server must support FSO.