Working on the templating

First approach to the loop syntax