'/' Example produces a static page template 'Author: griefforyou' /
'Open the web template file, read the template content set f = fso.opentextfile (Server.mAppath ("template.htm") Strout = f.readAllf.close
Strtitle = "This is the generated web title" strcontent = "This is the generated web content"
'Use of the tag strout = Replace in the template with true content (strout, "% title%", startle) strout = replace (strout, "% content%", strcontent)
'Creating a static page to generate SET f = fso.createtextfile (Server.MAppath ("new.htm"), true)
'Write web content F.WriteLine stroutf.close
Response.write "Generates a static page success!"
'Release File System Object Set F = NothingSet Fso = NOTHING%>