A
Adrienne Boswell
I know that PHP/JSP/ASP is probably a better way to go, but I just
wanted to know if it was possible to do this in pure html.
No
Also, it takes me a lot less time to create the html pages than to
create a dynamic site![]()
Actually, once you get the skeleton done, it's a lot faster to write
dynamic sites than static sites.
For example, this is what of one of my pages looks like for the church
site I maintain:
<% option explicit %>
<!--#include file="linkrel.asp"-->
<!--#include file="getdoc_inc.asp"-->
<!--#include file="meta_inc.asp"-->
</head>
<body>
<!--#include file="nav_inc.asp"-->
<div id="content">
<!--#include file="h1_inc.asp"-->
<!--#include file="ref_inc.asp"-->
<% if issearching then %>
<%=Highlight(content,needle)%>
<%else%>
<%=content%>
<%end if%>
</div>
<!--#include file="rhs_inc.asp"-->
<!--#include file="copyright_inc.asp"-->
<!--#include file="editdoc_inc.asp"-->
</body>
</html>
And this is all I do to generate a new document:
if not systemerror then
'create the document on the server
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileObject = fso.GetFile(Server.MapPath("newdoc_template.asp"))
fileObject.Copy Server.MapPath(pageurl),false
Set fileObject = Nothing
Set fso = Nothing
end if