HTML Templates
This is the following template we will be using. It should be placed in a
file in the directory your program is run from:
<html>
</html>
- In the example we parse the files on every request, which can be a lot of performance overhead. Experiment with parsing the files at the beginning of your program and executing them in your
http.Handler
(hint: make use of theCopy()
method on ). - Experiment with parsing and using multiple templates.