rename geneateHtmlFromTemplate to generateHtml, and remove baseRelativeUrl param & variables