Installation guide

Creating Output Documents
2-11
The source for the webmagic2.html template document looks like
<!--
HTML output template used by webmagic.m in call to the
function HTMLREP. (HTMLREP replaces variable names delinated
by dollar signs, e.g., $msquare$, with their values. It also
generates HTML tables and select lists dynamically from
matrics,
cell arrays, and vectors.)
-->
<html>
<head>
<title>Magic Square in an HTML Table</title>
</head>
<div align="center">
<strong>Magic Square in an HTML Table</strong></p>
<!--
Use the MATLAB "AUTOGENERATE" HTML attribute to generate a
table dynamically from the variable "msquare", which is a
matrix (in program webmagic.m).
-->
<table border="1" cellspacing="1" autogenerate="$msquare$">
<tr>
<td align="right">
</td>
</tr>
</table>
<!--
Replace $msize$ and $msum$ with the contents of MATLAB
variables
named "msize" and "msum" respectively as computed in
webmagic.m.
-->
<p>
Size: $msize$<br>
Sum of all columns, rows, and diagonals: $msum$
</div>