Add loop statement support for html template.