The HTML templates that generate the pages in Help+Manual's HTML-based output formats (HTML Help, WebHelp, Windows Exe and ePUB eBooks and Visual Studio Help) make extensive use of variables. You can use all global predefined variables and all your user-defined variables in your HTML templates
There are also a number of special predefined variables for use in these templates only. For details on these variables and how to use them see Variables in HTML templates.
You can make these variables available for use in your scripts in your templates by loading this file prior to referencing the variables, like this:
The variables are stored in an object called hmConfigVariables and the variables themselves are stored in all upper case. So if you have a variable called PROJECTVERSION you would reference it as:
The values are always strings. If you want to use the values as numbers, Boolean values etc. you need to convert them before using them.
HTML variables are primarily designed for use in HTML templates and HTML code objects – you can use them in other locations but then only the text portion of the variable value will be inserted.
The code stored in the HTML variable must make sense in the template, of course, you are entirely responsible for that!
Any changes you make to the HTML templates are not checked for plausibility or syntax errors. You are entirely responsible for all the code you enter and all the changes you make. Making changes to the template code without knowing what you are doing can cause serious errors and malfunctions.
Variables and Conditional Output (Reference, lists of available variables and conditions)