report.tpl example
Report generation example
The report.tpl example generates a hardware and software report in HTML format. It showcases some of the built-in types and the host reflection features of terp. As the example is rather large, it is not included in this page but only linked to.
To generate the report, you can use the terp command line utility and redirect the output, for example by typing:
C:\terp\bin>terp -f ..\examples\template\report.tpl >..\examples\template\out.html C:\terp\bin>
This run will take a few seconds to complete because it performs a large number of host reflection tasks. For example, once it has found a C++ compiler executable, it executes it with the compiler-specific version query option and parses the output for the version number.
