Public class ToHtml that uses Freemarker to convert dynamic template to html