def getTemplate(self, htmlPage, title, pageSpecificHeaders=[]): myTemplate = HtmlTemplate() myTemplate.addBody(open(htmlPage).read()).addTitle(title) myTemplate.addHeaders([ "https://cert01.securepaypage.litle.com/LitlePayPage/litle-api.js", "http://quickui.org/release/quickui.catalog.css", "http://code.jquery.com/jquery-1.7.2.min.js", "http://quickui.org/release/quickui.js", "/static/js/jquery.colorbox.js", "/static/js/enhanceselect.js", "/static/js/score1.js", "/static/js/score2.js", "/static/js/currencyFormat.js", "/static/js/G.js", "/static/js/controls/textField.js", "/static/js/controls/submitButton.js", "/static/js/controls/stardisplay.js", "/static/js/controls/reviewrow.js", "/static/js/controls/dealershipResultRow.js", "/static/js/controls/rankresult.js", "/static/js/controls/rankresult2.js", "/static/js/controls/locationentry.js", "/static/js/pages/storepage.js", "/static/js/pages/buypage.js", "/static/js/pages/finddealershippage.js", "/static/js/pages/homepage.js", "/static/js/pages/publicrankingpage.js" ]); myTemplate.addHeaders(pageSpecificHeaders) self.template = myTemplate