text/template scripts compatibility