fix item template, add foreach directive
clone template for each invocation
0.20.0