if to_string is defined, tpl render as html