using toHtml method for LVS and SV templates