each addHtmlBeforeTemplate