pass _base_ file name into generateHtmlFromTemplate