Closed m-7761 closed 5 years ago
BTW: Do you have any idea how the "template.htm" file is working:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> Maverick Model 3D Help - <TMPL_VAR name="PAGE_TITLE"> </title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body bgcolor="#e0e0e0">
<TMPL_VAR name="PAGE_CONTENT">
<hr/>
<center>
[
<a href="olh_index.html">Contents</a>
|
<a href="olh_detailsindex.html">Introduction</a>
|
<a href="olh_tools.html">Tools</a>
|
<a href="olh_commands.html">Geometry Menu</a>
]
<br/>
Copyright © 2004-2008, Kevin Worcester
</center>
</body></html>
I can't see a mechanism. Is this just something like "index.html" that is automatic? It's not working for me anyway.
The so-called html files don't have their own title/body elements. I don't see anything in the code that can account for it.
The Maverick help .html files are generated from files in doc/html/ using Perl HTML::Template module.
The actual usage of HTML::Template is in util/hpagemake.pl.
By default the .html files are generated in doc/html/ which would overwrite the .htm template files if they were renamed.
Currently the html files aren't generated on Windows as Perl is (likely) not present. Windows releases include html files generated on GNU/Linux. It's not really ideal.
I see, I just now read the template file, and saw the <TMPL_VAR name="PAGE_TITLE">
and realized that information is not in the htm files, so looked into the folder to see there is a Makefile in there... that outputs .html files. (I guess I wasn't paying attention, because I had to look in there to see the template.htm file.)
I think probably the files should be renamed to use .html. Anyway, not all browsers will convert html links to htm... or at least wxWidgets' won't.