Then you call MergeTemplateAndVariables method, pass in the full path of the HTML file and the KeyPair list. This will take the HTML file and replace all the text placeholders $PLACEHOLDER$ and return HTML