begin doc template, $var=level1 inside for-each, $var=first inside for-each, $var=second end doc template, $var=level1