Add some documentation and correctly escape characters in server templating